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
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
The Quaternion rotation to use.
The transform plane to use.