Documentation

Unity Engine

Unity Engine

FromDegrees(float)

Create a rotation with the specified rotation, in degrees. See PhysicsRotate.FromRadians.
Read time 1 minuteLast updated a month 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.