기술 자료

Unity Engine

Unity Engine

FromDegrees(float)

Create a rotation with the specified rotation, in degrees. See PhysicsRotate.FromRadians.
읽는 시간 1분최근 업데이트: 한 달 전

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.