# AngularVelocity

> Calculate the angular velocity necessary to rotate the current rotation and the specified rotation over a give time.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## AngularVelocity(PhysicsRotate, float)

Calculate the angular velocity necessary to rotate the current rotation and the specified rotation over a give time.

```csharp
public readonly float AngularVelocity(PhysicsRotate rotation, float deltaTime)
```

### Parameters

**** (\[PhysicsRotate]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsrotate)): The rotation used as a calculation to rotate to.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The delta time over which the rotation would take place.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The angular velocity required to rotate to the specified rotation. |

## AngularVelocity(PhysicsRotate, PhysicsRotate, float)

Calculate the angular velocity necessary to rotate between two rotations over a give time.

```csharp
public static float AngularVelocity(PhysicsRotate rotationA, PhysicsRotate rotationB, float deltaTime)
```

### Parameters

**** (\[PhysicsRotate]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsrotate)): The rotation to rotate from.**** (\[PhysicsRotate]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsrotate)): The rotation to rotate to.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The delta time over which the rotation would take place.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The angular velocity required to rotate between the specified rotations. |
