While working on a fast racing car game I realised that the ContactPoints returned in the Collision paremter of OnCollisionStay are outisde the Box Collider of the vehicle.
What’s going on? It’s physically impossible to have collision points outside the collider.
The vehicle Rigidbody is using the much needed Continuous collision detection. It probably has something to do with it. How can you prevent this from happening? I expect to get the exact wall position
Hi! Its not actually a collision, its a contact point between two colliders, and it appears before the real collision, and can exist after the real collision ended. The parameter Default Contact Offset influences the distance when contacts should be recognised.
This parameter will change the distance when collision contacts will be created. And you can recognize the real collision when the impulse in contact is not zero length for example.