# ModifiableContactPair

> A light-weight proxy that allows to access the contact buffers directly.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public struct ModifiableContactPair
```

## Fields

| Value                                                                                               | Description                                                                             |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [otherPosition](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/otherposition.md) | World-space position of the second collider in this contact pair as seen by the solver. |
| [otherRotation](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/otherrotation.md) | World-space rotation of the second collider in this contact pair as seen by the solver. |
| [position](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/position.md)           | World-space position of the first collider in this contact pair as seen by the solver.  |
| [rotation](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/rotation.md)           | World-space rotation of the first collider in this contact pair as seen by the solver.  |

## Properties

| Property                                                                                                                  | Description                                                           |
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bodyAngularVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/bodyangularvelocity.md)           | Angular velocity of the first body in the contact pair.               |
| [bodyEntityId](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/bodyentityid.md)                         | EntityId of the first body in this contact pair.                      |
| [bodyVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/bodyvelocity.md)                         | Linear velocity of the first body in the contact pair.                |
| [colliderEntityId](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/colliderentityid.md)                 | EntityId of the first Collider in this contact pair.                  |
| [contactCount](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/contactcount.md)                         | The amount of the contact points generated for this contact pair.     |
| [massProperties](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/massproperties.md)                     | Mass-related properties of this contact pair, such as the mass ratio. |
| [otherBodyAngularVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/otherbodyangularvelocity.md) | Angular velocity of the second body in the contact pair.              |
| [otherBodyEntityId](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/otherbodyentityid.md)               | EntityId of the second body in this contact pair.                     |
| [otherBodyVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/otherbodyvelocity.md)               | Linear velocity of the second body in the contact pair.               |
| [otherColliderEntityId](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/othercolliderentityid.md)       | EntityId of the second collider in this contact pair.                 |

## Methods

| Method                                                                                                        | Description                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetBounciness](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getbounciness.md)           | Get the restitution value for the specified contact point in this contact pair.                                                                                                    |
| [GetDynamicFriction](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getdynamicfriction.md) | Get the value of the dynamic friction for a specified contact point in this contact pair.                                                                                          |
| [GetFaceIndex](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getfaceindex.md)             | Get the index of a face a particular contact point belongs to in this contact pair. Use this with [Mesh.triangles](/engine/6000.6/script-reference/unityengine/mesh/triangles.md). |
| [GetMaxImpulse](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getmaximpulse.md)           | Get the maximum impulse that the solver can apply at a particular contact point in this contact pair.                                                                              |
| [GetNormal](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getnormal.md)                   | Get the normal at a particular contact point in this contact pair.                                                                                                                 |
| [GetPoint](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getpoint.md)                     | Get the location of a particular contact point in this contact pair.                                                                                                               |
| [GetSeparation](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getseparation.md)           | Get the separation value at a particular contact point in this contact pair.                                                                                                       |
| [GetStaticFriction](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/getstaticfriction.md)   | Get the static friction coefficient at a particular point of the contact pair.                                                                                                     |
| [GetTargetVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/gettargetvelocity.md)   | Get the target velocity the solver should aim reaching at a particular contact point in this contact pair.                                                                         |
| [IgnoreContact](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/ignorecontact.md)           | Ignore the specified contact point in this contact pair.                                                                                                                           |
| [SetBounciness](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setbounciness.md)           | Set the restitution value for the specified contact point in this contact pair.                                                                                                    |
| [SetDynamicFriction](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setdynamicfriction.md) | Set the value of the dynamic friction for a specified contact point in this contact pair.                                                                                          |
| [SetMaxImpulse](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setmaximpulse.md)           | Set the maximum impulse that the solver can apply at a particular contact point in this contact pair.                                                                              |
| [SetNormal](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setnormal.md)                   | Set the normal at a particular contact point in this contact pair.                                                                                                                 |
| [SetPoint](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setpoint.md)                     | Set the location of a particular contact point in this contact pair.                                                                                                               |
| [SetSeparation](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setseparation.md)           | Set the separation value at a particular contact point in this contact pair.                                                                                                       |
| [SetStaticFriction](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/setstaticfriction.md)   | Set the static friction coefficient at a particular point of the contact pair.                                                                                                     |
| [SetTargetVelocity](/engine/6000.6/script-reference/unityengine/modifiablecontactpair/settargetvelocity.md)   | Set the target velocity the solver should aim reaching at a particular contact point in this contact pair.                                                                         |
