PhysicsRotate
Create an identity rotation.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Constructor
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
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(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
The rotation angle specified, in radians.
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.