Transform
Complete API reference for Transform, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Object
Component: no
public class Transform
Constructors
| Signature | Description |
|---|---|
Transform(Transform) | Executes Transform and returns after the underlying engine call finishes. |
Transform() | Executes Transform and returns after the underlying engine call finishes. |
Attributes
| Name | Type | Description |
|---|---|---|
STATE_DYNAMIC | int | Represents the STATE_DYNAMIC value stored on this instance. Read or assign to update the property. |
STATE_STATIC | int | Represents the STATE_STATIC value stored on this instance. Read or assign to update the property. |
transform | Transform | Represents the transform value stored on this instance. Read or assign to update the property. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
globalPosition | Vector3 | get/set | Virtual attribute exposed by getGlobalPosition. Access it like a field to read or write the underlying value. |
globalRotation | Quaternion | get/set | Virtual attribute exposed by getGlobalRotation. Access it like a field to read or write the underlying value. |
globalScale | Vector3 | get/set | Virtual attribute exposed by getGlobalScale. Access it like a field to read or write the underlying value. |
ignoreParent | boolean | get/set | Virtual attribute exposed by isIgnoreParent. Access it like a field to read or write the underlying value. |
position | Vector3 | get/set | Virtual attribute exposed by getPosition. Access it like a field to read or write the underlying value. |
rotation | Quaternion | get/set | Virtual attribute exposed by getRotation. Access it like a field to read or write the underlying value. |
scale | Vector3 | get/set | Virtual attribute exposed by getScale. Access it like a field to read or write the underlying value. |
static | boolean | get/set | Virtual attribute exposed by isStatic. Access it like a field to read or write the underlying value. |
Methods
| Signature | Returns | Description |
|---|---|---|
setPosition(float, float, float) | void | Sets or updates the position. |
setPositionX(float) | void | Sets or updates the position x. |
setPositionY(float) | void | Sets or updates the position y. |
setPositionZ(float) | void | Sets or updates the position z. |
setRotation(float, float, float) | void | Sets or updates the rotation. |
setRotation(float, float, float, float) | void | Sets or updates the rotation. |
setScale(float, float, float) | void | Sets or updates the scale. |
setScale(float) | void | Sets or updates the scale. |
getGlobalPosition(Vector3) | Vector3 | Returns the current global position. |
getGlobalRotation(Quaternion) | Quaternion | Returns the current global rotation. |
getGlobalScale(Vector3) | Vector3 | Returns the current global scale. |
translate(float, float, float) | void | Transforms or moves the object accordingly. |
move(float, float, float) | void | Transforms or moves the object accordingly. |
rotate(float, float, float) | void | Transforms or moves the object accordingly. |
translateInSeconds(float, float, float) | void | Transforms or moves in seconds accordingly. |
moveInSeconds(float, float, float) | void | Transforms or moves in seconds accordingly. |
rotateInSeconds(float, float, float) | void | Transforms or moves in seconds accordingly. |
translateInSeconds(int, int, int) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(int, int, float) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(int, float, int) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(int, float, float) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(float, int, int) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(float, int, float) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
translateInSeconds(float, float, int) | void | Executes translateInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(int, int, int) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(int, int, float) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(int, float, int) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(int, float, float) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(float, int, int) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(float, int, float) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
moveInSeconds(float, float, int) | void | Executes moveInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(int, int, int) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(int, int, float) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(int, float, int) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(int, float, float) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(float, int, int) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(float, int, float) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
rotateInSeconds(float, float, int) | void | Executes rotateInSeconds and returns after the underlying engine call finishes. |
lookTo(SpatialObject) | void | Performs the lookTo operation using the provided parameters (object). |
lookTo(Vector3) | void | Performs the lookTo operation using the provided parameters (position). |
lookTo(float, float, float) | void | Performs the lookTo operation using the provided parameters (x, y, z). |
lookTo(SpatialObject, boolean, boolean) | void | Executes lookTo and returns after the underlying engine call finishes. |
lookTo(Vector3, boolean, boolean) | void | Executes lookTo and returns after the underlying engine call finishes. |
lookTo(float, float, float, boolean, boolean) | void | Executes lookTo and returns after the underlying engine call finishes. |
lookToIgnoreY(SpatialObject) | void | Performs the lookToIgnoreY operation using the provided parameters (object). |
lookToIgnoreY(Vector3) | void | Performs the lookToIgnoreY operation using the provided parameters (position). |
teleportTo(SpatialObject) | void | Performs the teleportTo operation using the provided parameters (object). |
teleportTo(Vector3) | void | Performs the teleportTo operation using the provided parameters (position). |
smoothLookTo(SpatialObject, float) | void | Performs the smoothLookTo operation using the provided parameters (other, lerpSpeed). |
smoothLookTo(Vector3, float) | void | Performs the smoothLookTo operation using the provided parameters (other, lerpSpeed). |
lerpLookTo(SpatialObject, float) | void | Performs the lerpLookTo operation using the provided parameters (other, lerpSpeed). |
lerpLookTo(Vector3, float) | void | Performs the lerpLookTo operation using the provided parameters (other, lerpSpeed). |
lerpLookToIgnoreY(SpatialObject, float) | void | Performs the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed). |
lerpLookToIgnoreY(Vector3, float) | void | Performs the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed). |
transformPoint(Vector3) | Vector3 | Performs the transformPoint operation using the provided parameters (vector3). |
transformPoint(Vector3, Vector3) | void | Performs the transformPoint operation using the provided parameters (vector3, out). |
inverseTransformPoint(Vector3) | Vector3 | Performs the inverseTransformPoint operation using the provided parameters (vector3). |
inverseTransformPoint(Vector3, Vector3) | void | Performs the inverseTransformPoint operation using the provided parameters (vector3, out). |
transformDirection(Vector3) | Vector3 | Performs the transformDirection operation using the provided parameters (vector3). |
transformDirection(Vector3, Vector3) | void | Performs the transformDirection operation using the provided parameters (vector3, out). |
inverseTransformDirection(Vector3) | Vector3 | Performs the inverseTransformDirection operation using the provided parameters (vector3). |
inverseTransformDirection(Vector3, Vector3) | void | Performs the inverseTransformDirection operation using the provided parameters (vector3, out). |
forward() | Vector3 | Executes forward and returns after the underlying engine call finishes. |
back() | Vector3 | Executes back and returns after the underlying engine call finishes. |
right() | Vector3 | Executes right and returns after the underlying engine call finishes. |
left() | Vector3 | Executes left and returns after the underlying engine call finishes. |
up() | Vector3 | Executes up and returns after the underlying engine call finishes. |
down() | Vector3 | Executes down and returns after the underlying engine call finishes. |
forward(Vector3) | Vector3 | Performs the forward operation using the provided parameters (out). |
back(Vector3) | Vector3 | Performs the back operation using the provided parameters (out). |
right(Vector3) | Vector3 | Performs the right operation using the provided parameters (out). |
left(Vector3) | Vector3 | Performs the left operation using the provided parameters (out). |
up(Vector3) | Vector3 | Performs the up operation using the provided parameters (out). |
down(Vector3) | Vector3 | Performs the down operation using the provided parameters (out). |
globalDistance(SpatialObject) | float | Performs the globalDistance operation using the provided parameters (other). |
globalDistance(Transform) | float | Performs the globalDistance operation using the provided parameters (other). |
globalDistance(Vector3) | float | Performs the globalDistance operation using the provided parameters (other). |
globalSqrtDistance(SpatialObject) | float | Performs the globalSqrtDistance operation using the provided parameters (other). |
globalSqrtDistance(Transform) | float | Performs the globalSqrtDistance operation using the provided parameters (other). |
globalSqrtDistance(Vector3) | float | Performs the globalSqrtDistance operation using the provided parameters (other). |
getState() | int | Returns the current state. |
setState(int) | void | Sets 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) | Vector3 | Performs the mulGlobalVector3 operation using the provided parameters (vector3). |
mulLocalVector3(Vector3) | Vector3 | Performs the mulLocalVector3 operation using the provided parameters (vector3). |
recalculateMatrices() | void | Executes recalculateMatrices and returns after the underlying engine call finishes. |