Struct CollisionEvent.Details
Extra details about a collision.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct CollisionEvent.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 |
---|---|
float |
Properties
AverageContactPointPosition
Calculate the average contact point position.
Declaration
public float3 AverageContactPointPosition { get; }
Property Value
Type | Description |
---|---|
float3 | The average contact point position. |