Skip to main content

Transform

Complete API reference for Transform, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Object

Component: no


public class Transform

Constructors

SignatureDescription
Transform(Transform)Executes Transform and returns after the underlying engine call finishes.
Transform()Executes Transform and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
STATE_DYNAMICintRepresents the STATE_DYNAMIC value stored on this instance. Read or assign to update the property.
STATE_STATICintRepresents the STATE_STATIC value stored on this instance. Read or assign to update the property.
transformTransformRepresents the transform value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
globalPositionVector3get/setVirtual attribute exposed by getGlobalPosition. Access it like a field to read or write the underlying value.
globalRotationQuaternionget/setVirtual attribute exposed by getGlobalRotation. Access it like a field to read or write the underlying value.
globalScaleVector3get/setVirtual attribute exposed by getGlobalScale. Access it like a field to read or write the underlying value.
ignoreParentbooleanget/setVirtual attribute exposed by isIgnoreParent. Access it like a field to read or write the underlying value.
positionVector3get/setVirtual attribute exposed by getPosition. Access it like a field to read or write the underlying value.
rotationQuaternionget/setVirtual attribute exposed by getRotation. Access it like a field to read or write the underlying value.
scaleVector3get/setVirtual attribute exposed by getScale. Access it like a field to read or write the underlying value.
staticbooleanget/setVirtual attribute exposed by isStatic. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setPosition(float, float, float)voidSets or updates the position.
setPositionX(float)voidSets or updates the position x.
setPositionY(float)voidSets or updates the position y.
setPositionZ(float)voidSets or updates the position z.
setRotation(float, float, float)voidSets or updates the rotation.
setRotation(float, float, float, float)voidSets or updates the rotation.
setScale(float, float, float)voidSets or updates the scale.
setScale(float)voidSets or updates the scale.
getGlobalPosition(Vector3)Vector3Returns the current global position.
getGlobalRotation(Quaternion)QuaternionReturns the current global rotation.
getGlobalScale(Vector3)Vector3Returns the current global scale.
translate(float, float, float)voidTransforms or moves the object accordingly.
move(float, float, float)voidTransforms or moves the object accordingly.
rotate(float, float, float)voidTransforms or moves the object accordingly.
translateInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
moveInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
rotateInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
translateInSeconds(int, int, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, int, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, float, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, float, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, int, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, int, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, float, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, int, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, int, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, float, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, float, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, int, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, int, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, float, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, int, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, int, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, float, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, float, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, int, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, int, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, float, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
lookTo(SpatialObject)voidPerforms the lookTo operation using the provided parameters (object).
lookTo(Vector3)voidPerforms the lookTo operation using the provided parameters (position).
lookTo(float, float, float)voidPerforms the lookTo operation using the provided parameters (x, y, z).
lookTo(SpatialObject, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookTo(Vector3, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookTo(float, float, float, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookToIgnoreY(SpatialObject)voidPerforms the lookToIgnoreY operation using the provided parameters (object).
lookToIgnoreY(Vector3)voidPerforms the lookToIgnoreY operation using the provided parameters (position).
teleportTo(SpatialObject)voidPerforms the teleportTo operation using the provided parameters (object).
teleportTo(Vector3)voidPerforms the teleportTo operation using the provided parameters (position).
smoothLookTo(SpatialObject, float)voidPerforms the smoothLookTo operation using the provided parameters (other, lerpSpeed).
smoothLookTo(Vector3, float)voidPerforms the smoothLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookTo(SpatialObject, float)voidPerforms the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookTo(Vector3, float)voidPerforms the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(SpatialObject, float)voidPerforms the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(Vector3, float)voidPerforms the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
transformPoint(Vector3)Vector3Performs the transformPoint operation using the provided parameters (vector3).
transformPoint(Vector3, Vector3)voidPerforms the transformPoint operation using the provided parameters (vector3, out).
inverseTransformPoint(Vector3)Vector3Performs the inverseTransformPoint operation using the provided parameters (vector3).
inverseTransformPoint(Vector3, Vector3)voidPerforms the inverseTransformPoint operation using the provided parameters (vector3, out).
transformDirection(Vector3)Vector3Performs the transformDirection operation using the provided parameters (vector3).
transformDirection(Vector3, Vector3)voidPerforms the transformDirection operation using the provided parameters (vector3, out).
inverseTransformDirection(Vector3)Vector3Performs the inverseTransformDirection operation using the provided parameters (vector3).
inverseTransformDirection(Vector3, Vector3)voidPerforms the inverseTransformDirection operation using the provided parameters (vector3, out).
forward()Vector3Executes forward and returns after the underlying engine call finishes.
back()Vector3Executes back and returns after the underlying engine call finishes.
right()Vector3Executes right and returns after the underlying engine call finishes.
left()Vector3Executes left and returns after the underlying engine call finishes.
up()Vector3Executes up and returns after the underlying engine call finishes.
down()Vector3Executes down and returns after the underlying engine call finishes.
forward(Vector3)Vector3Performs the forward operation using the provided parameters (out).
back(Vector3)Vector3Performs the back operation using the provided parameters (out).
right(Vector3)Vector3Performs the right operation using the provided parameters (out).
left(Vector3)Vector3Performs the left operation using the provided parameters (out).
up(Vector3)Vector3Performs the up operation using the provided parameters (out).
down(Vector3)Vector3Performs the down operation using the provided parameters (out).
globalDistance(SpatialObject)floatPerforms the globalDistance operation using the provided parameters (other).
globalDistance(Transform)floatPerforms the globalDistance operation using the provided parameters (other).
globalDistance(Vector3)floatPerforms the globalDistance operation using the provided parameters (other).
globalSqrtDistance(SpatialObject)floatPerforms the globalSqrtDistance operation using the provided parameters (other).
globalSqrtDistance(Transform)floatPerforms the globalSqrtDistance operation using the provided parameters (other).
globalSqrtDistance(Vector3)floatPerforms the globalSqrtDistance operation using the provided parameters (other).
getState()intReturns the current state.
setState(int)voidSets or updates the state.
getGlobalMatrix()float[]Returns the current global matrix.
getGlobalMatrix(float[])float[]Returns the current global matrix.
getLocalMatrix()float[]Returns the current local matrix.
getLocalMatrix(float[])float[]Returns the current local matrix.
mulGlobalVector3(Vector3)Vector3Performs the mulGlobalVector3 operation using the provided parameters (vector3).
mulLocalVector3(Vector3)Vector3Performs the mulLocalVector3 operation using the provided parameters (vector3).
recalculateMatrices()voidExecutes recalculateMatrices and returns after the underlying engine call finishes.