기술 자료

Unity Engine

Unity Engine

AngularVelocityToQuaternion(float, float, TransformPlane)

Calculate a Quaternion given a 2D angular velocity and a time to integrate over using the selected transform plane. If PhysicsWorld.TransformPlane.Custom is used, PhysicsWorld.TransformPlane.XY will be used instead which may not provide the correct results.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static Quaternion AngularVelocityToQuaternion(float angularVelocity, float deltaTime, PhysicsWorld.TransformPlane transformPlane)

Parameters

angularVelocity

The 2D angular velocity, in radians.

deltaTime

The time over which to apply the angular velocity, in seconds.

transformPlane

The transform plane to use.

Returns

Type

Description

QuaternionThe transformed rotation.