Jump to content

Rotate Sprite Body along with Sprite angle


Salvatore
 Share

Recommended Posts

You cannot rotate the body in Arcade physics. It uses a system called 'Axis Aligned Bounding Box', which is very fast but by definition does not allow the collision boxes to be rotated (the 'axis aligned' bit). If you need more accurate collision detection you may wish to try P2 instead.

Link to comment
Share on other sites

Ambitious! I like it! This kind of game may be difficult to replicate using the standard bundled physics libraries I'm afraid. I've not used P2 much but I assume the physics for the Planet Defender game were custom-built for this type of game, and P2 may not be entirely suitable, or at least will take some complicated wrangling to replicate this.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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