isekream Posted April 25, 2016 Share Posted April 25, 2016 I have a bouncing ball and I want to detect that the ball has "hit the floor" in my game. Is there any predefined method for detecting this? Link to comment Share on other sites More sharing options...
drhayes Posted April 26, 2016 Share Posted April 26, 2016 In Arcade physics, the property "blocked" has properties set for when areas of the Sprite collide with the World boundaries or a Tile. e.g. "sprite.body.blocked.down === true" when the bottom of the sprite collided with the World boundary. Link to comment Share on other sites More sharing options...
isekream Posted April 29, 2016 Author Share Posted April 29, 2016 On 26 April 2016 at 10:21 AM, drhayes said: In Arcade physics, the property "blocked" has properties set for when areas of the Sprite collide with the World boundaries or a Tile. e.g. "sprite.body.blocked.down === true" when the bottom of the sprite collided with the World boundary. Thanks but I am using P2 Physics. I check ended up doing a conditional check for the sprite's.x value against the floor on an update() Link to comment Share on other sites More sharing options...
Recommended Posts