Questions about collision objects behavior [SOLVED]

Hello guys.

I started to study about collision and now i got some questions about it.

  1. Q1 with exception of ‘tutorials projects’ and this page is there another place with information about Defold Collision use?

  2. Q2 in my tests i did this simulation:


Q2.1 Are these normal behaviors, between Dynamic and static object collision?

Q3 how can I handle the Gravity force and ‘bouncy / elastic force’? as you can see, each touch of ball against the block is increasing the elastic force.

Thanks!!!

Restitution is the “Bounciness” of the collision object. The values should be between 0 and 1. 0 would be no velocity reflected back where 1 would be the full velocity reflected back.

So I believe if you have a positive restitution on both objects, then you are compounding the effect, thus speeding up your bounce. You should probably take the static object and put a zero restitution on it and just have the restitution handled on the dynamic object.

2 Likes

Just like @jweaver911 says, the restitution should be between 0.0 and 1.0. You can read more about the different properties in the Physics manual.

1 Like