मुख्य कंटेंट तक स्किप करें

Class: Transform

This page documents the methods and fields available in the Transform class.

Members

SignatureDescription
back()Performs the back operation.
back(Vector3)Performs the back operation using the provided parameters (out).
down()Performs the down operation.
down(Vector3)Performs the down operation using the provided parameters (out).
forward()Performs the forward operation.
forward(Vector3)Performs the forward operation using the provided parameters (out).
getGlobalMatrix()Returns the current global matrix.
getGlobalMatrix(float[])Returns the current global matrix.
getGlobalPosition()Returns the current global position.
getGlobalPosition(Vector3)Returns the current global position.
getGlobalRotation()Returns the current global rotation.
getGlobalRotation(Quaternion)Returns the current global rotation.
getGlobalScale()Returns the current global scale.
getGlobalScale(Vector3)Returns the current global scale.
getLocalMatrix()Returns the current local matrix.
getLocalMatrix(float[])Returns the current local matrix.
getPosition()Returns the current position.
getRotation()Returns the current rotation.
getScale()Returns the current scale.
getState()Returns the current state.
globalDistance(SpatialObject)Performs the globalDistance operation using the provided parameters (other).
globalDistance(Transform)Performs the globalDistance operation using the provided parameters (other).
globalDistance(Vector3)Performs the globalDistance operation using the provided parameters (other).
globalSqrtDistance(SpatialObject)Performs the globalSqrtDistance operation using the provided parameters (other).
globalSqrtDistance(Transform)Performs the globalSqrtDistance operation using the provided parameters (other).
globalSqrtDistance(Vector3)Performs the globalSqrtDistance operation using the provided parameters (other).
inverseTransformDirection(Vector3)Performs the inverseTransformDirection operation using the provided parameters (vector3).
inverseTransformDirection(Vector3, Vector3)Performs the inverseTransformDirection operation using the provided parameters (vector3, out).
inverseTransformPoint(Vector3)Performs the inverseTransformPoint operation using the provided parameters (vector3).
inverseTransformPoint(Vector3, Vector3)Performs the inverseTransformPoint operation using the provided parameters (vector3, out).
isIgnoreParent()Returns whether ignore parent is true.
isStatic()Returns whether static is true.
left()Performs the left operation.
left(Vector3)Performs the left operation using the provided parameters (out).
lerpLookTo(SpatialObject, float)Performs the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookTo(Vector3, float)Performs the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(SpatialObject, float)Performs the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(Vector3, float)Performs the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
lookTo(SpatialObject)Performs the lookTo operation using the provided parameters (object).
lookTo(Vector3)Performs the lookTo operation using the provided parameters (position).
lookTo(float, float, float)Performs the lookTo operation using the provided parameters (x, y, z).
lookToIgnoreY(SpatialObject)Performs the lookToIgnoreY operation using the provided parameters (object).
lookToIgnoreY(Vector3)Performs the lookToIgnoreY operation using the provided parameters (position).
move(float, float, float)Transforms or moves the object accordingly.
moveInSeconds(float, float, float)Transforms or moves in seconds accordingly.
mulGlobalVector3(Vector3)Performs the mulGlobalVector3 operation using the provided parameters (vector3).
mulLocalVector3(Vector3)Performs the mulLocalVector3 operation using the provided parameters (vector3).
recalculateMatrices()Performs the recalculateMatrices operation.
right()Performs the right operation.
right(Vector3)Performs the right operation using the provided parameters (out).
rotate(float, float, float)Transforms or moves the object accordingly.
rotateInSeconds(float, float, float)Transforms or moves in seconds accordingly.
setGlobalPosition(Vector3)Sets or updates the global position.
setGlobalRotation(Quaternion)Sets or updates the global rotation.
setGlobalScale(Vector3)Sets or updates the global scale.
setIgnoreParent(boolean)Sets or updates the ignore parent.
setPosition(Vector3)Sets or updates the position.
setPosition(float, float, float)Sets or updates the position.
setPositionX(float)Sets or updates the position x.
setPositionY(float)Sets or updates the position y.
setPositionZ(float)Sets or updates the position z.
setRotation(Quaternion)Sets or updates the rotation.
setRotation(float, float, float)Sets or updates the rotation.
setRotation(float, float, float, float)Sets or updates the rotation.
setScale(Vector3)Sets or updates the scale.
setScale(float)Sets or updates the scale.
setScale(float, float, float)Sets or updates the scale.
setState(int)Sets or updates the state.
setStatic(boolean)Sets or updates the static.
smoothLookTo(SpatialObject, float)Performs the smoothLookTo operation using the provided parameters (other, lerpSpeed).
smoothLookTo(Vector3, float)Performs the smoothLookTo operation using the provided parameters (other, lerpSpeed).
teleportTo(SpatialObject)Performs the teleportTo operation using the provided parameters (object).
teleportTo(Vector3)Performs the teleportTo operation using the provided parameters (position).
transformDirection(Vector3)Performs the transformDirection operation using the provided parameters (vector3).
transformDirection(Vector3, Vector3)Performs the transformDirection operation using the provided parameters (vector3, out).
transformPoint(Vector3)Performs the transformPoint operation using the provided parameters (vector3).
transformPoint(Vector3, Vector3)Performs the transformPoint operation using the provided parameters (vector3, out).
translate(float, float, float)Transforms or moves the object accordingly.
translateInSeconds(float, float, float)Transforms or moves in seconds accordingly.
up()Performs the up operation.
up(Vector3)Performs the up operation using the provided parameters (out).