Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsRotate

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

Definition

  • Type: Constructor
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

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(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.