Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTranslationIgnoredAxis(Vector3, TransformPlane)

Get the ignored translation axis, given the specified transform plane. If PhysicsWorld.TransformPlane.Custom is used, PhysicsWorld.TransformPlane.XY will be used instead which may not provide the correct results.
Read time 1 minuteLast updated 12 days ago

Definition

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

Parameters

position

The position to extra the axis from.

transformPlane

The transform plane to use.

Returns

Type

Description

floatThe ignored translation axis value.