Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToRotationSlow3D(float, Quaternion, TransformPlane)

Transform a 2D angle into a 3D rotation using the selected transform plane (Slow). The transformation is slower because the rotation is more complex due to the fact that changing a single axis of rotation requires it to not affect any other axis rotations.
Read time 1 minuteLast updated 13 days ago

Definition

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

Parameters

angle

The 2D angle to transform in radians.

reference

The 3D rotation used as a reference.

transformPlane

The transform plane to use.

Returns

Type

Description

Quaternion