文档

Unity Engine

Unity Engine

ToRotationFast3D(float, TransformPlane)

Transform a 2D angle into a 3D rotation using the selected transform plane (Fast). The transformation is fast because the rotation is simplified by the fact that only a single axis of rotation is handled. All other axis rotations are reset to zero.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static Quaternion ToRotationFast3D(float angle, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

angle

The 2D angle to transform in radians.

transformPlane

The transform plane to use.

Returns

Type

Description

QuaternionThe transformed rotation.