기술 자료

Unity Engine

Unity Engine

GetRotationIgnoredAxes(TransformPlane)

Get the ignored rotation axes, given the specified transform plane. This is the inverse of PhysicsMath.GetRotationAxes. 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 Vector3 GetRotationIgnoredAxes(PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

transformPlane

The transform plane to use.

Returns

Type

Description

Vector3The ignored rotation axes. 0 indicates an axis is used whereas 1 indicates the axis is ignored.