文档

Unity Engine

Unity Engine

PhysicsRotate

Create an identity rotation.
阅读时间1 分钟最后更新于 1 个月前

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.