Skip to main content

Class: SpatialObject

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

Members

SignatureDescription
SpatialObject(SpatialObject)Creates a new instance of SpatialObject.
SpatialObject(String)Creates a new instance of SpatialObject.
SpatialObject(String, SpatialObject)Creates a new instance of SpatialObject.
addComponent(Component)Adds component to the collection.
addComponent(Component, Class)Adds component to the collection.
allowSelect()Performs the allowSelect operation.
allowSelect()Performs the allowSelect operation.
allowSelect()Performs the allowSelect operation.
back()Performs the back operation.
back(Vector3)Performs the back operation using the provided parameters (out).
callFunction(String)Performs the callFunction operation using the provided parameters (name).
callFunction(String, Object...)Performs the callFunction operation using the provided parameters (name, args).
callFunction(String, String)Performs the callFunction operation using the provided parameters (name, args).
callFunction(String, boolean)Performs the callFunction operation using the provided parameters (name, args).
callFunction(String, float)Performs the callFunction operation using the provided parameters (name, args).
callFunction(String, int)Performs the callFunction operation using the provided parameters (name, args).
colliderWithName(String)Performs the colliderWithName operation using the provided parameters (objectName).
compareName(String)Compares this instance with another for equality/order.
compareTag(String)Compares this instance with another for equality/order.
componentAt(int)Performs the componentAt operation using the provided parameters (idx).
componentCount()Performs the componentCount operation.
destroy()Performs the destroy operation.
distance(SpatialObject)Performs the distance operation using the provided parameters (other).
distance(Transform)Performs the distance operation using the provided parameters (other).
distance(Vector3)Performs the distance operation using the provided parameters (other).
down()Performs the down operation.
down(Vector3)Performs the down operation using the provided parameters (out).
duplicate()Performs the duplicate operation.
exists()Performs the exists operation.
findChildObject(JAVARuntime.OHString)Performs the findChildObject operation using the provided parameters (name).
findChildObject(String)Performs the findChildObject operation using the provided parameters (name).
findComponent(Class)Performs the findComponent operation using the provided parameters (classReference).
findComponent(String)Performs the findComponent operation using the provided parameters (tittle).
findComponentInChildren(Class)Performs the findComponentInChildren operation using the provided parameters (classReference).
findComponentInChildren(String)Performs the findComponentInChildren operation using the provided parameters (tittle).
findComponents(Class)Performs the findComponents operation using the provided parameters (classReference).
findComponents(String)Performs the findComponents operation using the provided parameters (tittle).
forward()Performs the forward operation.
forward(Vector3)Performs the forward operation using the provided parameters (out).
get()Returns the current value.
get()Returns the current value.
get()Returns the current value.
getChildAt(int)Returns the current child at.
getChildCount()Returns the current child count.
getChildIndex(SpatialObject)Returns the current child index.
getChildList()Returns the current child list.
getCollisionAt(int)Returns the current collision at.
getCollisionList()Returns the current collision list.
getCollisionsCount()Returns the current collisions count.
getComponentAt(int)Returns the current component at.
getComponentsAt(int)Returns the current components at.
getComponentsList()Returns the current components list.
getExtraTittle()Returns the current extra tittle.
getExtraTittle()Returns the current extra tittle.
getExtraTittle()Returns the current extra tittle.
getGUID()Returns the current guid.
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.
getInspector(Context, Field, Object, String, GetSetterListener, UserPointer)Returns the current inspector.
getInspectorForArray(Context, Object[], int, Object, String, GetSetterListener, UserPointer)Returns the current inspector for array.
getInspectorForList(Context, GhostList, int, Object, String, GetSetterListener, UserPointer)Returns the current inspector for list.
getLocalMatrix()Returns the current local matrix.
getLocalMatrix(float[])Returns the current local matrix.
getMainParent()Returns the current main parent.
getMetaID()Returns the current meta id.
getName()Returns the current name.
getParent()Returns the current parent.
getParent()Returns the current parent.
getParent()Returns the current parent.
getPhysics()Returns the current physics.
getPhysicsEntity()Returns the current physics entity.
getPosition()Returns the current position.
getRotation()Returns the current rotation.
getScale()Returns the current scale.
getSimpleName(UserPointer)Returns the current simple name.
getState()Returns the current state.
getTag()Returns the current tag.
getTransform()Returns the current transform.
instantiate(ObjectFile)Performs the instantiate operation using the provided parameters (pFile).
instantiate(ObjectFile, Vector3)Performs the instantiate operation using the provided parameters (pFile, position).
instantiate(ObjectFile, Vector3, Quaternion)Performs the instantiate operation using the provided parameters (pFile, position, rotation).
instantiate(ObjectFile, Vector3, Quaternion, Vector3)Performs the instantiate operation using the provided parameters (pFile, position, rotation, scale).
instantiateAsChild(ObjectFile)Performs the instantiateAsChild operation using the provided parameters (pFile).
instantiateAsChild(ObjectFile, SpatialObject)Performs the instantiateAsChild operation using the provided parameters (pFile, parent).
instantiateHasChild(ObjectFile)Performs the instantiateHasChild operation using the provided parameters (pFile).
instantiateHasChild(ObjectFile, SpatialObject)Performs the instantiateHasChild operation using the provided parameters (pFile, parent).
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).
isColliding()Returns whether colliding is true.
isDontDestroyOnLoad()Returns whether dont destroy on load is true.
isEnabled()Returns whether enabled is true.
isRestorable()Returns whether restorable 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).
loadFile(ObjectFile)Loads file into the object.
log(String)Performs the log operation using the provided parameters (str).
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).
newInstance(UserPointer)Creates a new instance.
recalculateMatrices()Performs the recalculateMatrices operation.
removeComponent(Component)Removes component from the collection.
removeParent()Removes parent from the collection.
restore(Variable, UserPointer)Performs the restore operation using the provided parameters (variable, userPointer).
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.
save(String, Object, UserPointer)Saves data from the object.
set(GameObject)Sets or updates the the value.
set(GameObject)Sets or updates the the value.
set(GameObject)Sets or updates the the value.
setDontDestroyOnLoad(boolean)Sets or updates the dont destroy on load.
setEnabled(boolean)Sets or updates the enabled.
setGlobalPosition(Vector3)Sets or updates the global position.
setGlobalRotation(Quaternion)Sets or updates the global rotation.
setGlobalScale(Vector3)Sets or updates the global scale.
setMetaID(String)Sets or updates the meta id.
setName(String)Sets or updates the name.
setNameOH(JAVARuntime.OHString)Sets or updates the name oh.
setParent(SpatialObject)Sets or updates the parent.
setPhysicsEntity(PhysicsEntity)Sets or updates the physics entity.
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.
setTag(String)Sets or updates the tag.
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).
sqrtDistance(SpatialObject)Performs the sqrtDistance operation using the provided parameters (other).
sqrtDistance(Transform)Performs the sqrtDistance operation using the provided parameters (other).
sqrtDistance(Vector3)Performs the sqrtDistance operation using the provided parameters (other).
swapChildrenPosition(SpatialObject, SpatialObject)Performs the swapChildrenPosition operation using the provided parameters (a, b).
teleportTo(SpatialObject)Performs the teleportTo operation using the provided parameters (object).
teleportTo(Vector3)Performs the teleportTo operation using the provided parameters (position).
toJson()Performs the toJson operation.
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).