Struct CollisionHit4
Impact informations during physics collision
public struct CollisionHit4Constructors
CollisionHit4(CollisionState)
Internal quick constructor
public CollisionHit4(CollisionState state)CollisionHit4(CollisionState, Contact, Boolean)
Internal quick constructor
public CollisionHit4(CollisionState state, Contact c, bool isForA)Fields
manifold
The internal access to the manifold
public Manifold manifoldother
The other collider we are colliding with
public Collider4 othersensor
Is this a collision with other trigger?
public bool sensorRemarks
Trigger-trigger collision is not supported
state
The state of the collision
public CollisionState stateProperties
depths
The contact penetrations of the collision
public float[] depths { get; }Remarks
Use this param to get precise information about contact points
normal
The normal direction of the collision
public Vector4 normal { get; }Remarks
The returning direction is toward to other's body
points
The contact points of the collision
public Vector4[] points { get; }Remarks
The returning point is the average between two overlapping points