physics

From Teverse


Properties

className [readonly]

Type: string

name [readonly]

Type: string

running [readonly]

Type: boolean

Inherited from baseClass:

name

Type: string
A none unique identifier

className [readonly]

Type: string
The name of the object's class

Methods

rayTestScreenAllHits

nil physics:rayTestScreenAllHits()

resume

nil physics:resume()

rayTestAllHits

nil physics:rayTestAllHits()

pause

nil physics:pause()

rayTestClosest

nil physics:rayTestClosest()

rayTestScreen

nil physics:rayTestScreen()

Inherited from baseClass:

getDescendants

table physics:getDescendants()
Returns a table of all descended objects

isContainer

boolean physics:isContainer()

isA

boolean physics:isA(string className)
Returns true if this object is derived from the className given.

destroy

nil physics:destroy()
Locks the object before removing it from the hierarchy. Children will also be destroyed.

getFullName

string physics:getFullName()
Returns a string including ancestor names

constructor

nil physics:constructor()

destroyAllChildren

nil physics:destroyAllChildren()
Invokes the destroy method on each child of this instance.

hasChild

boolean physics:hasChild(string name)
Returns true if this object has a child with the name given

isDescendantOf

boolean physics:isDescendantOf(baseClass ancestor)
Returns true if this object is a descendant of the ancestor object given

describe

nil physics:describe()

clone

variant physics:clone()
Creates and returns a copy of this object

Events

Inherited from baseClass:

changed

eventListener physics:changed(function(string propertyName, variant newValuevariant))
Fired when a property changes

childAdded

eventListener physics:childAdded(function(baseClass child))
Fired when a child is added

childRemoved

eventListener physics:childRemoved(function(baseClass child))
Fired when a child is removed

destroying

eventListener physics:destroying(function())
Fired just before an object is destroyed.

Sub classes

Category derivedFromphysics not found