Jump to content

setSize of group member prevents collision


kay
 Share

Recommended Posts

I create sprites with the help of groups and use enableBody. Later I want them to collide with a tilelayer.

 

This works fine, till I call setSize on any body of this group. After this the sprites just fall through the tiles.

 

I tried to call it directly after the create and with forEach of the group, but the result is the same.

 

When I enable body debug, I can see that the body has changed and should collide, but it doesn't.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...