ドキュメント

Unity Engine

Unity Engine

GetTranslationAxes(TransformPlane)

Get the used translation axes, given the specified transform plane. This is the inverse of PhysicsMath.GetTranslationIgnoredAxes. If PhysicsWorld.TransformPlane.Custom is used, PhysicsWorld.TransformPlane.XY will be used instead which may not provide the correct results.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static Vector3 GetTranslationAxes(PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

transformPlane

The transform plane to use.

Returns

Type

Description

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