文档

Unity Engine

Unity Engine

Rotate(float)

Calculate a new rotation of the current rotation by the specified angle.
阅读时间1 分钟最后更新于 11 天前

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.