IntroductionAn object represents something within the game that the player may interact with. Methodsset_directionfunction object:set_direction(direction) Only relevant to camera objects. Re-orients the camera to be facing in the given direction. Direction can be specified as a vector3d object or as three numeric components. set_locationfunction object:set_location(location_name) Moves the object to the given location. set_orientationfunction object:set_orientation(orientation) Instantly re-orients the object. Orientation can be specified as a quaternion object or as four numeric components. set_positionfunction object:set_position(position) Instantly re-positions the object. Position can be specified as a vector3d object or as three numeric components. set_upfunction object:set_up(direction) Only relevant to camera objects. Sets the 'up' vector of the camera. Direction can be specified as a vector3d object or as three numeric components. orientationfunction object:orientation() Returns the object's current orientation. positionfunction object:position() Returns the object's current position.
|