Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity collision.impulse

void OnCollisionEnter(Collision col) {
    Vector3 collisionForce = col.impulse / Time.fixedDeltaTime;
    // And now you can use it for your calculations!
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unity
ADD COMMENT
Topic
Name
9+4 =