I’m trying to shoot a spear and have it stick to whatever it hits. The problem is that if I use OnCollisionEnter, I seem to get the position and rotation a few frames after it hit, which makes the spears point in seemingly random directions.
So, how can I get the exact position and rotation on the exact moment of impact? just can’t figure it out.
Thanks.
have you made sure you’ve got interpolation turned on and continuous / continuous dynamic collision detection mode set on the rigid body?
Hi. Yes, I’ve tried every combination, but it doesn’t seem to make a difference.
When I did a search I found posts saying that OnCollisionEnter registers a bit after the two colliders have touched. If that’s true, there surely must be a workaround?
I’m just a noob, but I have an idea. If collisions are physics, maybe the problem is that your FixedUpdate runs to slow, comparing to Update.