ToRadians(float)
Convert degrees to radians. This operates as deterministically as possible across platforms. See PhysicsMath.ToDegrees.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static float ToRadians(float degrees)
Parameters
The degree value to convert to radians.
Returns
Type | Description |
|---|---|
| float | The value converted to radians. |