# AddRelativeForce(Vector2, ForceMode2D)

> Adds a force to the local space Rigidbody2D.linearVelocity. In other words, the force is applied in the rotated coordinate space of the Rigidbody2D.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public void AddRelativeForce(Vector2 relativeForce, ForceMode2D mode = ForceMode2D.Force)
```

### Parameters

**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): Components of the force in the X and Y axes.**** (\[ForceMode2D]\(/engine/6000.5/script-reference/unityengine/forcemode2d)): The method used to apply the specified force.

### Remarks

Additional Resources: [Rigidbody2D.AddForce](/engine/6000.5/script-reference/unityengine/rigidbody2d/addforce.md), [Rigidbody2D.AddForceAtPosition](/engine/6000.5/script-reference/unityengine/rigidbody2d/addforceatposition.md) and [Rigidbody2D.AddTorque](/engine/6000.5/script-reference/unityengine/rigidbody2d/addtorque.md).
