codart Posted December 21, 2014 Share Posted December 21, 2014 I have two short questions:1. When enabling P2 physic on sprite, how can i disable the rotation on impact with other body, and how to disable game canvas bound so the sprite can move out of bound2. set sprite.angle does not work with P2 physic, when i turn off P2, it work perfectlyplease help! Link to comment Share on other sites More sharing options...
valueerror Posted December 21, 2014 Share Posted December 21, 2014 sprite.body.fixedRotation=truesprite.body.collideWorldbounds=falsethis is just out of my head so i hope there isnt a typo in it Link to comment Share on other sites More sharing options...
valueerror Posted December 21, 2014 Share Posted December 21, 2014 sprite.angle should work fine, i just used it in a game earlier today Link to comment Share on other sites More sharing options...
Recommended Posts