Recommended way for predicting the collision?
Posted: 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.
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.