Struct CollisionEvent.Details
Extra details about a collision.
Inherited Members
Namespace: Unity.Physics
Syntax
public struct Details
Fields
EstimatedContactPointPositions
Estimated contact point positions (in world space). Use this information about individual contact point positions to apply custom logic, for example looking at the Length to differentiate between vertex (1 point), edge (2 point) or face (3 or more points) collision.
Declaration
public NativeArray<float3> EstimatedContactPointPositions
Field Value
Type | Description |
---|---|
NativeArray<float3> |
EstimatedImpulse
Estimated total impulse applied.
Declaration
public float EstimatedImpulse
Field Value
Type | Description |
---|---|
Single |
Properties
AverageContactPointPosition
Calculate the average contact point position.
Declaration
public readonly float3 AverageContactPointPosition { get; }
Property Value
Type | Description |
---|---|
float3 | The average contact point position. |