Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsRotate

Create an identity rotation.
Read time 1 minuteLast updated 11 days ago

Definition

PhysicsRotate()

Create an identity rotation.
public PhysicsRotate()

PhysicsRotate(Vector2)

Create a rotation with the specified direction.
public PhysicsRotate(Vector2 direction)

Parameters

direction

The direction to use. This cannot be zero length.

PhysicsRotate(float)

Create a rotation with the specified angle.
NOTE: This cannot be used by Burst as the constructor makes an engine call to ensure the resultant direction is deterministic.
public PhysicsRotate(float angle)

Parameters

angle

The rotation angle specified, in radians.

PhysicsRotate(Quaternion, TransformPlane)

Create a rotation with the specified Quaternion.
public PhysicsRotate(Quaternion rotation, PhysicsWorld.TransformPlane transformPlane)

Parameters

rotation

The Quaternion rotation to use.

transformPlane

The transform plane to use.