Recommended way for predicting the collision?

Post Reply
TonyS
Posts: 10
Joined: Sat May 27, 2017 8:16 am

Recommended way for predicting the collision?

Post by TonyS » Sat May 27, 2017 8:22 am

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.


usamarafiq93
Posts: 5
Joined: Mon Jun 10, 2019 3:46 pm

Re: Recommended way for predicting the collision?

Post by usamarafiq93 » Wed Jun 19, 2019 8:28 pm

My question is similar.
How do you predict that two dynamic bodies are going to hit.

Post Reply