Struct CollisionHit4
Impact informations during physics collision
public struct CollisionHit4
Constructors
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 manifold
other
The other collider we are colliding with
public Collider4 other
sensor
Is this a collision with other trigger?
public bool sensor
Remarks
Trigger-trigger collision is not supported
state
The state of the collision
public CollisionState state
Properties
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