- Home /
The force on a collider which is penetrating the other collider
I shot a projectile at high speed and found that it bounces even though I set the coefficient of restitution of both colliders 0. I suppose that it happens because the collider is penetrating the other and then some repulsive force is applied to the colliders.
I want to know the vector of the force; direction and magnitude.
Thank you.
Answer by xxmariofer · Dec 17, 2020 at 08:56 AM
If a collider penetrates other it gets pushed out but it doesnt add a force to do that, anyway you should be able to get the direction and magnitude of the force by using the velocity property of the rigidbody
GetComponent<RigidBody>().velocity
Yes, I know how to get the value from the velocity, but I want to get the equation which deter$$anonymous$$es the velocity of the rigidbody.
Your answer
![](https://koobas.hobune.stream/wayback/20220613021746im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Reuse a collision 0 Answers
count how much force is applied 0 Answers
Collider question 0 Answers
OnCollisionEnter Push Object Problem 0 Answers