Struct ContactPoint
Describes a contact point where the collision occurs. ContactPoint is used in CollisionEvent and Collision structure.
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public struct ContactPoint
Fields
normal
Declaration
public Vector3 normal
Field Value
Type | Description |
---|---|
Vector3 | The contact normal in world space. Direction is toward outside of the first collider. |
point
Declaration
public Vector3 point
Field Value
Type | Description |
---|---|
Vector3 | The first collider's contact position in world space. |
separation
Declaration
public float separation
Field Value
Type | Description |
---|---|
System.Single | The separation distance of the contact point of two colliders. Always negative when two colliders are colliding. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()