Lua Class - sceneObject

Extends objectBase

sceneObject is a class in the Teverse Lua API that contains 5 properties, 1 methods and 0 events. sceneObject extends objectBase.

This class cannot be constructed, it is managed by Teverse.

test test test!

Properties
READONLY
vector3 absolutePosition

CODE SAMPLE
print(sceneObject.absolutePosition) --> vector3(10, 10, 10)
READONLY
quaternion absoluteRotation

CODE SAMPLE
print(sceneObject.absoluteRotation) --> quaternion
sceneObject parent

CODE SAMPLE
sceneObject.parent = sceneObject
print(sceneObject.parent) --> sceneObject
vector3 position

CODE SAMPLE
sceneObject.position = vector3(10, 10, 10)
print(sceneObject.position) --> vector3(10, 10, 10)
quaternion rotation

CODE SAMPLE
sceneObject.rotation = quaternion
print(sceneObject.rotation) --> quaternion
INHERITED READONLY
number id

CODE SAMPLE
print(sceneObject.id) --> 1.0
INHERITED
string name

CODE SAMPLE
sceneObject.name = ""
print(sceneObject.name) --> ""
Methods
lookAt( vector3 vector )

Points the sceneObject towards the provided vector

CODE SAMPLE
sceneObject:lookAt(vector3(10, 10, 10)) --> 
INHERITED
destroy( )
CODE SAMPLE
sceneObject:destroy() --> 

Destroys this object, further accessing this instance will error

Events

Some sections of our docs are maintained on github.