Struct CollisionEvent
Syntax
public struct CollisionEvent
Properties
BodyIndexA
Declaration
public int BodyIndexA { get; }
Property Value
BodyIndexB
Declaration
public int BodyIndexB { get; }
Property Value
BodyIndices
Declaration
[Obsolete("BodyIndices has been deprecated. Use BodyIndexA and BodyIndexB directly. (RemovedAfter 2020-08-01)")]
public BodyIndexPair BodyIndices { get; }
Property Value
ColliderKeyA
Declaration
public ColliderKey ColliderKeyA { get; }
Property Value
ColliderKeyB
Declaration
public ColliderKey ColliderKeyB { get; }
Property Value
ColliderKeys
Declaration
[Obsolete("ColliderKeys has been deprecated. Use ColliderKeyA and ColliderKeyB directly. (RemovedAfter 2020-08-01)")]
public ColliderKeyPair ColliderKeys { get; }
Property Value
Entities
Declaration
[Obsolete("Entities has been deprecated. Use EntityA and EntityB directly. (RemovedAfter 2020-08-01)")]
public EntityPair Entities { get; }
Property Value
EntityA
Declaration
public Entity EntityA { get; }
Property Value
EntityB
Declaration
public Entity EntityB { get; }
Property Value
Normal
Declaration
public float3 Normal { get; }
Property Value
Type |
Description |
Unity.Mathematics.float3 |
|
Methods
CalculateDetails(ref PhysicsWorld)
Declaration
public CollisionEvent.Details CalculateDetails(ref PhysicsWorld physicsWorld)
Parameters
Returns