Lua functions list

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
  
 
* [[getObject]](« objectName »)
 
* [[getObject]](« objectName »)
* [[rotate]](object, {x, y, z}, angle, « local »)
+
* [[rotate]](object, {x, y, z}, angle, ''"local"'')
* [[translate]](object, {x, y, z}, « local »)
+
* [[translate]](object, {x, y, z}, ''"local"'')
 
* [[getPosition]](object)
 
* [[getPosition]](object)
 
* [[getRotation]](object)
 
* [[getRotation]](object)
Line 16: Line 16:
 
===Behavior===
 
===Behavior===
  
* [[getBehaviorVariable]](object, behaviorId, « variableName »)
+
* [[getBehaviorVariable]](object, behaviorId, "variableName")
* [[setBehaviorVariable]](object, behaviorId, « variableName », value)
+
* [[setBehaviorVariable]](object, behaviorId, "variableName", value)
  
 
===Animation===
 
===Animation===
Line 29: Line 29:
 
* [[setGravity]]({x, y, z})
 
* [[setGravity]]({x, y, z})
 
* [[getGravity]]()
 
* [[getGravity]]()
* [[addCentralForce]](object, {x, y, z}, « local »)
+
* [[addCentralForce]](object, {x, y, z}, ''"local"'')
* [[addTorque]](object, {x, y, z}, « local »)
+
* [[addTorque]](object, {x, y, z}, ''"local"'')
 
* [[getLinearDamping]](object)
 
* [[getLinearDamping]](object)
 
* [[setLinearDamping]](object, {x, y, z})
 
* [[setLinearDamping]](object, {x, y, z})
Line 39: Line 39:
 
* [[clearForces]](object)
 
* [[clearForces]](object)
 
* [[getNumCollisions]](object)
 
* [[getNumCollisions]](object)
 +
* [[rayHit]](start, end, ''object'')
  
 
===Inputs===
 
===Inputs===
Line 57: Line 58:
 
===Scene===
 
===Scene===
  
* [[changeScene]](sceneId)
+
* [[getScene]]("sceneName")
 +
* [[changeScene]](scene)
  
 
===Level===
 
===Level===
  
* [[loadLevel]](« levelName »)
+
* [[loadLevel]]("levelName")
  
 
===Light===
 
===Light===
Line 92: Line 94:
 
===Text===
 
===Text===
  
* [[setText]](object , « text »)
+
* [[setText]](object , "text")
 
* [[getText]](object)
 
* [[getText]](object)
 
* [[getTextColor]](object)
 
* [[getTextColor]](object)

Revision as of 20:40, 5 August 2012

Contents

Object

Behavior

Animation

Physics

Inputs

Sound

Scene

Level

Light

Camera

Text

Cursor

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox