robin0707 Posted May 18, 2014 Share Posted May 18, 2014 Is thre something like immovable for p2. 1 spirte has to ignore the gravity. Link to comment Share on other sites More sharing options...
CtlAltDel Posted May 18, 2014 Share Posted May 18, 2014 somesprite.body.static = true Link to comment Share on other sites More sharing options...
valueerror Posted May 19, 2014 Share Posted May 19, 2014 if you want it to just ignore the gravitiy but still be movable somesprite.body.data.gravityScale= 0; Link to comment Share on other sites More sharing options...
ZoomBox Posted May 19, 2014 Share Posted May 19, 2014 Actually, I think it's more:this.body.kinematic = true; With this, the body can't be moved by any other bodies. The only way to move the object become "this.body.velocity.x = value" (or velocity.y of course). Edit: You could move the kinematic object by setting it's coordinates (x,y) but it won't physicaly react as expected. Link to comment Share on other sites More sharing options...
Recommended Posts