# Sandbox.PhysicsBody.SetInertiaTensor

```csharp
void SetInertiaTensor(Vector3 inertia, Rotation rotation)
```

Sets the inertia tensor using the given moments and rotation.

### Parameters

- `inertia` (`Vector3`): Principal moments (Ixx, Iyy, Izz).
- `rotation` (`Rotation`): Rotation of the principal axes.

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
