Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTranslationAxes(TransformPlane)

Get the used translation axes, given the specified transform plane. This is the inverse of PhysicsMath.GetTranslationIgnoredAxes.
Read time 1 minuteLast updated 13 days ago

Definition

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.