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.
Recommended way for predicting the collision?
-
- Posts: 96
- Joined: Wed Mar 16, 2016 10:11 am
Re: Recommended way for predicting the collision?
I would like to know it too.
You may be interested in :-
- http://bulletphysics.org/Bullet/phpBB3/ ... php?t=9692.
- http://bulletphysics.org/Bullet/phpBB3/ ... php?t=4328
- http://www.bulletphysics.org/Bullet/php ... f=4&t=2794
You may be interested in :-
- http://bulletphysics.org/Bullet/phpBB3/ ... php?t=9692.
- http://bulletphysics.org/Bullet/phpBB3/ ... php?t=4328
- http://www.bulletphysics.org/Bullet/php ... f=4&t=2794
-
- Posts: 5
- Joined: Mon Jun 10, 2019 3:46 pm
Re: Recommended way for predicting the collision?
My question is similar.
How do you predict that two dynamic bodies are going to hit.
How do you predict that two dynamic bodies are going to hit.