Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FromDegrees(float)

Create a rotation with the specified rotation, in degrees. See PhysicsRotate.FromRadians.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsRotate FromDegrees(float degrees)

Parameters

degrees

The rotation angle specified, in degrees.

Returns

Type

Description

PhysicsRotateThe rotation represented by the specified rotation, in degrees.