Page 1 of 1

Recommended way for predicting the collision?

Posted: Sat May 27, 2017 8:22 am
by TonyS
scenario: 1 dynamic body hits a kinematic body and kinematic body also becomes a dynamic body while not stopping the initial dynamic body that hits it. (As if those kinematic bodies were always dynamic. So the actual collision will happen between 2 dynamic bodies, not 1 dynamic and 1 kinematic.)

I need to convert kinematic bodies to dynamic bodies right before the actual collision happens so the hitter object will not stop momentarily.

Should I raycast and check if the distance between two objects will be taken in deltaTime duration based on the velocity?
Should I sweepTest? ShapeCast?

I am trying to find the most efficient solution. Probably it is there and just waiting for me to discover it.

Thank you very much for your time and sharing your experiences.

Re: Recommended way for predicting the collision?

Posted: Sun May 28, 2017 10:21 am
by hyyou

Re: Recommended way for predicting the collision?

Posted: Wed Jun 19, 2019 8:28 pm
by usamarafiq93
My question is similar.
How do you predict that two dynamic bodies are going to hit.