My favorites | Sign in
Project Logo
                
Search
for
Updated May 28, 2009 by andy.geers
Object  
Details of the Object class

Introduction

An object represents something within the game that the player may interact with.

Methods

set_direction

function 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_location

function object:set_location(location_name)

Moves the object to the given location.

set_orientation

function object:set_orientation(orientation)

Instantly re-orients the object. Orientation can be specified as a quaternion object or as four numeric components.

set_position

function object:set_position(position)

Instantly re-positions the object. Position can be specified as a vector3d object or as three numeric components.

set_up

function 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.

orientation

function object:orientation()

Returns the object's current orientation.

position

function object:position()

Returns the object's current position.


Sign in to add a comment
Powered by Google Project Hosting