CollisionHandler

OnCollisionImpact

Property
Description

Side

Enum of the Top/Bottom/Left/Right/Front/Rear value

CollisionsCount

The amount of contact points

Point

The position in world space

Normal

The normal of the collision

RelativeVelocity

Relative velocity

CollisionMagnitude

The length (speed) on the relative velocity

DotToMyVelocity

Dot product between your rigidbody's normalized velocity and collision normal. Can be used to identify the "strength" of the collision.

DistanceToPreviousCollisionPoint

Distance to the previous contact point from this collision. OnCollisionImpact sends event for every contact point from a collision.

WeightRatio

Ratio between the other and your rigidbody mass.

CollisionStayInfo

Property
Description

CollisionSide

Enum of the Top/Bottom/Left/Right/Front/Rear value

Position

The position in world space

RelativeMagnitude

The length (speed) on the relative velocity

Last updated