physics bounce off walls

0 favourites
  • 5 posts
From the Asset Store
Bouncing ball
$9.99 USD
Template for a bouncing ball game, fully documented in comments and video
  • When using the built in physics behavior, I've noticed if objects are moving slowly, instead of bouncing off a wall as you'd expect, they become 'stuck' to the wall and move horizontal / vertically. It is hard to bounce into them to get them unstuck.

    Is there a way around this with adding a random kick off the wall?

  • Have you checked your collision polygon? Did you try changing it in your physics behaviour settings?

    You could always apply force or impulse at collision if needed.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    Just checked out what you suggested. The collision polygon is fine. It's on guess from shape and draws an octagon around the circle which looks ok. In the physics behavior it is set to circle. Elasticity is already at 0.7 and to be honest I'd like to keep this value or will bounce off other objects too much.

    I have been trying to work out how to add a force on collision properly. My trouble is I have tried and the bounce then comes off at an incorrect angle. I need to try and keep the bounce on the proper expected angle.

    Thanks

  • You might also check the walls, make sure in the physics behaviour they are set to bounding box.

    The impulse at collision thing, might be a hassle to implement correctly.

    Is physics absolutely nescessary for your game or could bullet behaviour with gravity work as well?

  • I guess I could change everything to bullet behavior. I am making it for android and found performance better using physics. Plus to me it was easier to set it up.

    I had a look at the walls. They are all bounding box.

    I've tried using Angle(0,0,Object[Physics].VelocityX,Object[Physics].VelocityY)

    To get the movement angle and applying a force at this angle on collision, but sometimes it will just apply a force along the wall and the ball slides up the wall a bit faster =P

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)