기술 자료

Unity Engine

Unity Engine

Rotate(float)

Calculate a new rotation of the current rotation by the specified angle.
읽는 시간 1분최근 업데이트: 9일 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly PhysicsRotate Rotate(float deltaAngle)

Parameters

deltaAngle

The change in angle, in radians.

Returns

Type

Description

PhysicsRotateThe rotation after rotating by deltaAngle.