0 Favourites

Physics based issue with Capx

  • Hi Guys

    I have a ball like object with physics property and it bounces without any damping, because I want it to constantly bounce at the same force. I also have a sort of drag shield that acts as a solid and will interact with the ball. This is where I would like some help.

    1.) How do I make it so that the ball bounce at the same force even after hitting the shield. For example: the ball bounces 5 units high, if I put the shield at 3 units high directly under the ball, it will bounce 8 units high.

    2.) Although the ball has the force to bounces 5 units high, once it is disturbed by the shield constantly and at different angles, it will lose its force and bounce strength. How do I ensure that the ball will always maintain its force and bounce strength.

    I feel that perhaps the solution to both is the same. But I wanted to let you guys know what I am trying to achieve.

    I have my capx below. (please press ctrl and drag a shield out with the mouse)

    dropbox.com/s/kgljg73gsa7qsn3/PhysicsBounceTest.capx

    Would really appreciate any help. Thanks!

  • As the bounce is based on the speed it hits the shield if the shield interupts a bounce it's bounce will be smaller.

    Maybe you could set elasticity to 0 and have an impulse applied at every collision to make sure every bounce has the same bouncing speed.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • LittleStain

    Thanks. Creating a manual form of collision with all solids will definitely be able to give me the effect I am looking for.

    I hope you don't mind this noob question, but what does the impulse setting do? Sorry, I really don't know about much of the settings in physics.

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