Struct ModifiableContactHeader
A modifiable contact header.
Inherited Members
Namespace: Unity.Physics
Syntax
public struct ModifiableContactHeader
Properties
BodyIndexA
Gets the body index a.
Declaration
public readonly int BodyIndexA { get; }
Property Value
Type | Description |
---|---|
Int32 | The body index a. |
BodyIndexB
Gets the body index b.
Declaration
public readonly int BodyIndexB { get; }
Property Value
Type | Description |
---|---|
Int32 | The body index b. |
CoefficientOfFriction
Gets or sets the coefficient of friction.
Declaration
public float CoefficientOfFriction { get; set; }
Property Value
Type | Description |
---|---|
Single | The coefficient of friction. |
CoefficientOfRestitution
Gets or sets the coefficient of restitution.
Declaration
public float CoefficientOfRestitution { get; set; }
Property Value
Type | Description |
---|---|
Single | The coefficient of restitution. |
ColliderKeyA
Gets the collider key a.
Declaration
public readonly ColliderKey ColliderKeyA { get; }
Property Value
Type | Description |
---|---|
ColliderKey | The collider key a. |
ColliderKeyB
Gets the collider key b.
Declaration
public readonly ColliderKey ColliderKeyB { get; }
Property Value
Type | Description |
---|---|
ColliderKey | The collider key b. |
CustomTagsA
Gets the custom tags a.
Declaration
public readonly byte CustomTagsA { get; }
Property Value
Type | Description |
---|---|
Byte | The custom tags a. |
CustomTagsB
Gets the custom tags b.
Declaration
public readonly byte CustomTagsB { get; }
Property Value
Type | Description |
---|---|
Byte | The custom tags b. |
EntityA
Gets the entity a.
Declaration
public readonly Entity EntityA { get; }
Property Value
Type | Description |
---|---|
Entity | The entity a. |
EntityB
Gets the entity b.
Declaration
public readonly Entity EntityB { get; }
Property Value
Type | Description |
---|---|
Entity | The entity b. |
JacobianFlags
Gets or sets the jacobian flags.
Declaration
public JacobianFlags JacobianFlags { get; set; }
Property Value
Type | Description |
---|---|
JacobianFlags | Options that control the jacobian. |
Modified
Gets a value indicating whether this object is modified.
Declaration
public bool Modified { get; }
Property Value
Type | Description |
---|---|
Boolean | True if modified, false if not. |
Normal
Gets or sets the normal.
Declaration
public float3 Normal { get; set; }
Property Value
Type | Description |
---|---|
float3 | The normal. |
NumContacts
Gets the number of contacts.
Declaration
public readonly int NumContacts { get; }
Property Value
Type | Description |
---|---|
Int32 | The total number of contacts. |