文档

Unity Engine

Unity Engine

ToRotation2D(Quaternion, TransformPlane)

Transform a 3D rotation into a 2D angle using the selected transform plane.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static float ToRotation2D(Quaternion quaternion, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

quaternion

The 3D rotation to transform.

transformPlane

The transform plane to use.

Returns

Type

Description

floatThe transformed rotation in radians.