Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Rotate(float)

Calculate a new rotation of the current rotation by the specified angle.
Read time 1 minuteLast updated 12 days ago

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

PhysicsRotate