# PhysicsBody.BatchForce

> A batch item used to apply a force to a PhysicsBody.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<BatchForce>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct PhysicsBody.BatchForce : IEquatable<PhysicsBody.BatchForce>
```

## Constructors

| Constructor                                                                                                                   | Description                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [BatchForce(Unity.U2D.Physics.PhysicsBody)](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/batchforce/ctor.md) | Create a default batch force, assigning the [PhysicsBody](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody.md). |

## Properties

| Property                                                                                               | Description                                                                                      |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| [physicsBody](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/batchforce/physicsbody.md) | The [PhysicsBody](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody.md) to write to. |

## Methods

| Method                                                                                                               | Description                                                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ApplyForce](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/batchforce/applyforce.md)                 | Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. [PhysicsBody.ApplyForce](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/applyforce.md). |
| [ApplyForceToCenter](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/batchforce/applyforcetocenter.md) | Apply a force to the center of mass. [PhysicsBody.ApplyForceToCenter](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/applyforcetocenter.md).                                                                                          |
| [ApplyTorque](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/batchforce/applytorque.md)               | Apply a torque. This affects the angular velocity without affecting the linear velocity. [PhysicsBody.ApplyTorque](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/applytorque.md).                                                    |
