Lua functions list

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
====Object====
+
===Object===
  
getObject(« objectName »)<br/>
+
* [[getObject]](« objectName »)
rotate(object, {x, y, z}, angle, « local »)<br/>
+
* [[rotate]](object, {x, y, z}, angle, « local »)
translate(object, {x, y, z}, « local »)<br/>
+
* [[translate]](object, {x, y, z}, « local »)
getPosition(object)<br/>
+
* [[getPosition]](object)
getRotation(object)<br/>
+
* [[getRotation]](object)
getScale(object)<br/>
+
* [[getScale]](object)
setPosition(object, {x, y, z})<br/>
+
* [[setPosition]](object, {x, y, z})
setRotation(object, {x, y, z})<br/>
+
* [[setRotation]](object, {x, y, z})
setScale(object, {x, y, z})<br/>
+
* [[setScale]](object, {x, y, z})
isVisible(object)<br/>
+
* [[isVisible]](object)
activate(object)<br/>
+
* [[activate]](object)
deactivate(object)<br/>
+
* [[deactivate]](object)
  
====Behavior====
+
===Behavior===
  
getBehaviorVariable(object, behaviorId, « variableName »)<br/>
+
* [[getBehaviorVariable]](object, behaviorId, « variableName »)
setBehaviorVariable(object, behaviorId, « variableName », value)<br/>
+
* [[setBehaviorVariable]](object, behaviorId, « variableName », value)
  
====Animation====
+
===Animation===
  
getCurrentAnimation(object)<br/>
+
* [[getCurrentAnimation]](object)
changeAnimation(object, animationId)<br/>
+
* [[changeAnimation]](object, animationId)
isAnimationOver(object)<br/>
+
* [[isAnimationOver]](object)
  
====Physics====
+
===Physics===
  
setGravity({x, y, z})<br/>
+
* [[setGravity]]({x, y, z})
getGravity()<br/>
+
* [[getGravity]]()
addCentralForce(object, {x, y, z}, « local »)<br/>
+
* [[addCentralForce]](object, {x, y, z}, « local »)
addTorque(object, {x, y, z}, « local »)<br/>
+
* [[addTorque]](object, {x, y, z}, « local »)
getLinearDamping(object)<br/>
+
* [[getLinearDamping]](object)
setLinearDamping(object, {x, y, z})<br/>
+
* [[setLinearDamping]](object, {x, y, z})
getAngularDamping(object)<br/>
+
* [[getAngularDamping]](object)
setAngularDamping(object, damping)<br/>
+
* [[setAngularDamping]](object, damping)
isCollisionTest(object)<br/>
+
* [[isCollisionTest]](object)
isCollisionBetween(object1, object2)<br/>
+
* [[isCollisionBetween]](object1, object2)
clearForces(object)<br/>
+
* [[clearForces]](object)
getNumCollisions(object)<br/>
+
* [[getNumCollisions]](object)
  
====Inputs====
+
===Inputs===
  
isKeyPressed([[Keys|key]])<br/>
+
* [[isKeyPressed]]([[Keys|key]])
onKeyDown([[Keys|key]])<br/>
+
* [[onKeyDown]]([[Keys|key]])
onKeyUp([[Keys|key]])<br/>
+
* [[onKeyUp]]([[Keys|key]])
getAxis([[Axis|axis]])<br/>
+
* [[getAxis]]([[Axis|axis]])
  
====Sound====
+
===Sound===
  
playSound(object)<br/>
+
* [[playSound]](object)
pauseSound(object)<br/>
+
* [[pauseSound]](object)
stopSound(object)<br/>
+
* [[stopSound]](object)
getSoundGain(object)<br/>
+
* [[getSoundGain]](object)
setSoundGain(object, gain)<br/>
+
* [[setSoundGain]](object, gain)
  
====Scene====
+
===Scene===
  
changeScene(sceneId)<br/>
+
* [[changeScene]](sceneId)
  
====Level====
+
===Level===
  
loadLevel(« levelName »)<br/>
+
* [[loadLevel]](« levelName »)
  
====Light====
+
===Light===
  
getLightColor(object)<br/>
+
* [[getLightColor]](object)
getLightRadius(object)<br/>
+
* [[getLightRadius]](object)
getLightIntensity(object)<br/>
+
* [[getLightIntensity]](object)
setLightColor(object, {r, g, b})<br/>
+
* [[setLightColor]](object, {r, g, b})
setLightRadius(object, radius)<br/>
+
* [[setLightRadius]](object, radius)
setLightIntensity(object, intensity)<br/>
+
* [[setLightIntensity]](object, intensity)
  
====Camera====
+
===Camera===
  
changeCurrentCamera(object)<br/>
+
* [[changeCurrentCamera]](object)
getCameraClearColor(object)<br/>
+
* [[getCameraClearColor]](object)
getCameraFov(object)<br/>
+
* [[getCameraFov]](object)
getCameraNear(object)<br/>
+
* [[getCameraNear]](object)
getCameraFar(object)<br/>
+
* [[getCameraFar]](object)
getCameraFogDistance(object)<br/>
+
* [[getCameraFogDistance]](object)
isCameraOrtho(object)<br/>
+
* [[isCameraOrtho]](object)
isCameraFogEnabled(object)<br/>
+
* [[isCameraFogEnabled]](object)
setCameraClearColor(object, {r, g, b})<br/>
+
* [[setCameraClearColor]](object, {r, g, b})
setCameraFov(object, fov)<br/>
+
* [[setCameraFov]](object, fov)
setCameraNear(object, near)<br/>
+
* [[setCameraNear]](object, near)
setCameraFar(object, far)<br/>
+
* [[setCameraFar]](object, far)
setCameraFogDistance(object, fogDistance)<br/>
+
* [[setCameraFogDistance]](object, fogDistance)
enableCameraOrtho(object, ortho)<br/>
+
* [[enableCameraOrtho]](object, ortho)
enableCameraFog(object, fog)<br/>
+
* [[enableCameraFog]](object, fog)
  
====Text====
+
===Text===
  
setText(object , « text »)<br/>
+
* [[setText]](object , « text »)
getText(object)<br/>
+
* [[getText]](object)
getTextColor(object)<br/>
+
* [[getTextColor]](object)
setTextColor(object, {r, g, b, a})<br/>
+
* [[setTextColor]](object, {r, g, b, a})
  
====Cursor====
+
===Cursor===
  
centerCursor()<br/>
+
* [[centerCursor]]()

Revision as of 19:58, 9 April 2012

Contents

Object

Behavior

Animation

Physics

Inputs

Sound

Scene

Level

Light

Camera

Text

Cursor

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox