Search results

Jump to: navigation, search
  • {{lua-function|setCurrentFrame|object, frame}} {{lua-function-param|object|object to operate on}}
    237 B (25 words) - 23:01, 8 February 2014
  • {{lua-function|translate|object, vector, local}} {{lua-function-param|object|object to operate on}}
    831 B (92 words) - 23:17, 8 February 2014
  • {{lua-function|setPosition|object, vector}} {{lua-function-param|object|object to operate on}}
    681 B (77 words) - 23:18, 8 February 2014
  • {{lua-function|getObject|objectName}} {{lua-function-param|objectName|object name}}
    775 B (113 words) - 23:13, 8 February 2014
  • {{lua-function|rotate|object, vector, angle, local}} {{lua-function-param|object|object to operate on}}
    943 B (110 words) - 23:17, 8 February 2014
  • {{lua-function|getPosition|object}} {{lua-function-param|object|object to operate on}}
    821 B (102 words) - 23:18, 8 February 2014
  • {{lua-function|setCameraFov|object, fov}} {{lua-function-param|object|object to operate on}}
    587 B (69 words) - 23:07, 8 February 2014
  • {{lua-function|getCameraFov|object}} {{lua-function-param|object|object to operate on}}
    467 B (59 words) - 23:05, 8 February 2014
  • {{lua-function|setLightIntensity|object, intensity}} {{lua-function-param|object|object to operate on}}
    697 B (78 words) - 23:30, 8 February 2014
  • {{lua-function|getLightIntensity|object}} {{lua-function-param|object|object to operate on}}
    482 B (57 words) - 23:29, 8 February 2014
  • {{lua-function|activate|object}} {{lua-function-param|object|object to operate on}}
    440 B (51 words) - 23:15, 8 February 2014
  • {{lua-function|deactivate|object}} {{lua-function-param|object|object to operate on}}
    371 B (40 words) - 23:15, 8 February 2014
  • {{lua-function|addCentralForce|object, vector, local}} {{lua-function-param|object|object to operate on}}
    863 B (98 words) - 23:26, 8 February 2014
  • {{lua-function|setText|object, text}} {{lua-function-param|object|object to operate on}}
    643 B (84 words) - 23:04, 8 February 2014
  • {{lua-function|isCollisionBetween|object1, object2}} {{lua-function-param|object1|first object}}
    1 KB (125 words) - 23:27, 8 February 2014
  • {{lua-function|getAxis|axis}} {{lua-function-param|axis|[[Axis|axis]] contant}}
    153 B (16 words) - 17:59, 8 February 2014
  • {{lua-function|getProperty|name}} {{lua-function-param|name|string with property name}}
    161 B (17 words) - 17:59, 8 February 2014
  • {{lua-function|getTouchPhase|touchId}} {{lua-function-param|touchId|touch id}}
    244 B (25 words) - 11:38, 9 February 2014
  • {{lua-function|getLastTouchPosition|touchId}} {{lua-function-param|touchId|touch id}}
    159 B (15 words) - 18:00, 8 February 2014
  • {{lua-function|getTouchPosition|touchId}} {{lua-function-param|touchId|touch id}}
    155 B (15 words) - 18:00, 8 February 2014
  • {{lua-function|getCurrentSceneId|}} [[Category:Lua scripting]]
    108 B (10 words) - 15:50, 8 February 2014
  • {{lua-function|getSystemTick|}} [[Category:Lua scripting]]
    105 B (10 words) - 15:56, 8 February 2014
  • {{lua-function|getAnimationSpeed|object}} {{lua-function-param|object|object to operate on}}
    192 B (20 words) - 22:59, 8 February 2014
  • {{lua-function|getCurrentFrame|object}} {{lua-function-param|object|object to operate on}}
    188 B (20 words) - 23:00, 8 February 2014
  • {{lua-function|setTextColor|object, color}} {{lua-function-param|object|object to operate on}}
    548 B (68 words) - 23:04, 8 February 2014
  • {{lua-function|isCollisionTest|object}} {{lua-function-param|object|object to operate on}}
    456 B (53 words) - 23:27, 8 February 2014
  • {{lua-function|getNumCollisions|object}} {{lua-function-param|object|object to operate on}}
    620 B (84 words) - 23:27, 8 February 2014
  • {{lua-function|playSound|object}} {{lua-function-param|object|object to operate on}}
    1 KB (186 words) - 15:00, 15 February 2014
  • {{lua-function|isVisible|object}} {{lua-function-param|object|object to operate on}}
    257 B (34 words) - 23:15, 8 February 2014
  • This example shows how to create a basic object using lua metatables :<br><br> function MyObject.create(ref, pos, speed) -- object creation
    870 B (126 words) - 14:01, 5 February 2014
  • {{lua-function|getCurrentAnimation|object}} {{lua-function-param|object|object to get animation from}}
    226 B (26 words) - 22:57, 8 February 2014
  • {{lua-function|addTorque|object, vector, local}} {{lua-function-param|object|object to operate on}}
    517 B (67 words) - 23:27, 8 February 2014
  • {{lua-function|clearForces|object}} {{lua-function-param|object|object to operate on}}
    204 B (24 words) - 23:26, 8 February 2014
  • {{lua-function|isKeyPressed|key}} {{lua-function-param|key|[[Keys|key]] constant}}
    212 B (27 words) - 17:57, 8 February 2014
  • {{lua-function|getText|object}} {{lua-function-param|object|object to operate on}}
    192 B (24 words) - 23:04, 8 February 2014
  • {{lua-function|pauseSound|object}} {{lua-function-param|object|object to operate on}}
    175 B (20 words) - 23:01, 8 February 2014
  • {{lua-function|stopSound|object}} {{lua-function-param|object|object to operate on}}
    173 B (20 words) - 23:02, 8 February 2014
  • {{lua-function|changeScene|scene}} {{lua-function-param|scene|scene to change to}}
    552 B (83 words) - 22:54, 8 February 2014
  • {{lua-function|getLightColor|object}} {{lua-function-param|object|object to operate on}}
    208 B (26 words) - 23:28, 8 February 2014
  • {{lua-function|getTextColor|object}} {{lua-function-param|object|object to operate on}}
    260 B (35 words) - 23:04, 8 February 2014
  • Lua doesn't have a way to do Object Oriented Programming. But you can fake it. This is how you create a class and object in LUA:
    5 KB (690 words) - 14:01, 5 February 2014
  • ...text file in your project/scripts folder, name it like you want, e.g.: new.lua ...ne script can be added to a scene at a time. To add more, use the 'dofile' function within a script, and include multiple other scripts.
    979 B (158 words) - 08:24, 10 February 2014
  • {{lua-function|changeAnimation|object, animationId}} {{lua-function-param|object|object to operate on}}
    679 B (75 words) - 22:58, 8 February 2014
  • {{lua-function|dofile|file}} Use this command to include additional lua files.
    689 B (92 words) - 10:06, 6 April 2014
  • {{lua-function|vec3|x, y, z}} {{lua-function-param|x|the ''x'' component of the vector}}
    580 B (79 words) - 17:53, 8 February 2014
  • {{lua-function|length|vector}} {{lua-function-param|vector|vector to calculate length of}}
    255 B (39 words) - 17:54, 8 February 2014
  • {{lua-function|normalize|vector}} {{lua-function-param|vector|vector to normalize}}
    222 B (27 words) - 17:54, 8 February 2014
  • {{lua-function|dot|vector1, vector2}} {{lua-function-param|vector1|first vector}}
    274 B (32 words) - 17:55, 8 February 2014
  • {{lua-function|cross|vector1, vector2}} {{lua-function-param|vector1|first vector}}
    273 B (32 words) - 17:56, 8 February 2014
  • {{lua-function|getUnProjectedPoint|object, vector}} {{lua-function-param|object|object to operate on}}
    820 B (101 words) - 23:13, 8 February 2014
  • {{lua-function|getParent|object}} {{lua-function-param|object|object to operate on}}
    225 B (26 words) - 23:14, 8 February 2014
  • {{lua-function|getChilds|object}} {{lua-function-param|object|object to operate on}}
    245 B (30 words) - 23:14, 8 February 2014
  • {{lua-function|setParent|object, parent}} {{lua-function-param|object|object to operate on}}
    319 B (37 words) - 23:14, 8 February 2014
  • {{lua-function|getName|object}} {{lua-function-param|object|object to operate on}}
    210 B (24 words) - 23:15, 8 February 2014
  • {{lua-function|isActive|object}} {{lua-function-param|object|object to operate on}}
    318 B (39 words) - 23:15, 8 February 2014
  • {{lua-function|getTransformedPosition|object}} {{lua-function-param|object|object to operate on}}
    373 B (43 words) - 23:19, 8 February 2014
  • {{lua-function|getTransformedRotation|object}} {{lua-function-param|object|object to operate on}}
    372 B (43 words) - 23:19, 8 February 2014
  • {{lua-function|getTransformedScale|object}} {{lua-function-param|object|object to operate on}}
    363 B (43 words) - 23:19, 8 February 2014
  • {{lua-function|getInverseRotatedVector|object, vector}} {{lua-function-param|object|object to operate on}}
    357 B (39 words) - 23:20, 8 February 2014
  • {{lua-function|getRotatedVector|object, vector}} {{lua-function-param|object|object to operate on}}
    443 B (53 words) - 23:20, 8 February 2014
  • {{lua-function|getInverseVector|object, vector}} {{lua-function-param|object|object to operate on}}
    422 B (51 words) - 23:21, 8 February 2014
  • {{lua-function|getTransformedVector|object, vector}} {{lua-function-param|object|object to operate on}}
    422 B (49 words) - 23:21, 8 February 2014
  • {{lua-function|updateMatrix|object}} {{lua-function-param|object|object to operate on}}
    222 B (23 words) - 23:21, 8 February 2014
  • {{lua-function|getMatrix|object}} {{lua-function-param|object|object to operate on}}
    265 B (31 words) - 23:21, 8 February 2014
  • {{lua-function|isCastingShadow|object}} {{lua-function-param|object|object to operate on}}
    386 B (48 words) - 23:16, 8 February 2014
  • {{lua-function|onKeyDown|key}} ...KeyPressed]] will return "true" continuously until a key is released, this function will return "true", when the button is pressed down and then "true","false"
    537 B (78 words) - 17:58, 8 February 2014
  • {{lua-function|onKeyUp|key}} {{lua-function-param|key|[[Keys|key]] constant}}
    304 B (41 words) - 17:58, 8 February 2014
  • {{lua-function|getScenesNumber|}} [[Category:Lua scripting]]
    211 B (24 words) - 15:50, 8 February 2014
  • {{lua-function|getLightRadious|object}} {{lua-function-param|object|object to operate on}}
    315 B (32 words) - 23:29, 8 February 2014
  • {{lua-function|getLightShadowQuality|object}} {{lua-function-param|object|object to operate on}}
    382 B (43 words) - 23:29, 8 February 2014
  • {{lua-function|getLightShadowBias|object}} {{lua-function-param|object|object to operate on}}
    273 B (30 words) - 23:29, 8 February 2014
  • {{lua-function|getLightShadowBlur|object}} {{lua-function-param|object|object to operate on}}
    272 B (30 words) - 23:29, 8 February 2014
  • {{lua-function|setLightColor|object, color}} {{lua-function-param|object|object to operate on}}
    477 B (56 words) - 23:30, 8 February 2014
  • {{lua-function|setLightShadowQuality|object, quality}} {{lua-function-param|object|object to operate on}}
    368 B (39 words) - 23:31, 8 February 2014
  • {{lua-function|setLightShadowBias|object, bias}} {{lua-function-param|object|object to operate on}}
    356 B (41 words) - 23:31, 8 February 2014
  • {{lua-function|setLightShadowBlur|object, blur}} {{lua-function-param|object|object to operate on}}
    335 B (39 words) - 23:31, 8 February 2014
  • {{lua-function|getWindowScale|}} [[Category:Lua scripting]]
    213 B (24 words) - 15:54, 8 February 2014
  • {{lua-function|hideCursor|}} [[Category:Lua scripting]]
    126 B (14 words) - 15:54, 8 February 2014
  • {{lua-function|showCursor|}} [[Category:Lua scripting]]
    126 B (14 words) - 15:54, 8 February 2014
  • {{lua-function|centerCursor|}} [[Category:Lua scripting]]
    271 B (39 words) - 15:54, 8 February 2014
  • {{lua-function|getCurrentCamera|}} [[Category:Lua scripting]]
    231 B (22 words) - 16:13, 8 February 2014
  • {{lua-function|setCameraClearColor|object, color}} {{lua-function-param|object|object to operate on}}
    352 B (37 words) - 23:07, 8 February 2014
  • {{lua-function|getCameraClearColor|object}} {{lua-function-param|object|object to operate on}}
    428 B (45 words) - 23:05, 8 February 2014
  • {{lua-function|setCameraFar|object, far}} {{lua-function-param|object|object to operate on}}
    386 B (48 words) - 23:08, 8 February 2014
  • {{lua-function|setCameraNear|object, near}} {{lua-function-param|object|object to operate on}}
    391 B (48 words) - 23:07, 8 February 2014
  • {{lua-function|enableCameraOrtho|object, bool}} {{lua-function-param|object|object to operate on}}
    481 B (56 words) - 23:10, 8 February 2014
  • {{lua-function|isCameraOrtho|object|}} {{lua-function-param|object|object to operate on}}
    398 B (46 words) - 23:06, 8 February 2014
  • {{lua-function|getCameraNear|object}} {{lua-function-param|object|object to operate on}}
    203 B (24 words) - 23:05, 8 February 2014
  • {{lua-function|getCameraFar|object}} {{lua-function-param|object|object to operate on}}
    201 B (24 words) - 23:05, 8 February 2014
  • {{lua-function|setAnimationSpeed|object, speed}} {{lua-function-param|object|object to operate on}}
    407 B (51 words) - 23:00, 8 February 2014
  • To add an event to the publish queue in lua: "event" can be either a function, or a table containing a "publish" function as follows:
    1 KB (161 words) - 14:14, 7 February 2014
  • ...se the function [[MObject3d#setPosition|setPosition]] but you will use the function [[MPhysicsContext#addCentralForce|MPhysicsContext::addCentralForce]]. ==centerCursor function==
    4 KB (510 words) - 10:06, 5 February 2014
  • return 1; // return 1 because the function is sending 1 value to the context (use 0 for none, 2 for 2 values...) In Lua the function will be used like this:
    964 B (117 words) - 08:57, 9 February 2014
  • function onSceneUpdate() function onSceneUpdate()
    1 KB (147 words) - 14:50, 15 February 2014
  • The scripts are written in [[Lua scripting|Lua]] and the script function <code>onSceneUpdate</code> will be called on each update in the game loop, scripts/ Lua scripts
    3 KB (450 words) - 20:13, 9 February 2014
  • {{lua-function|getRotation|object}} {{lua-function-param|object|object to operate on}}
    428 B (55 words) - 23:18, 8 February 2014
  • {{lua-function|setRotation|object, vector}} {{lua-function-param|object|object to operate on}}
    683 B (78 words) - 23:19, 8 February 2014
  • {{lua-function|getBehaviorVariable|object, behaviorId, variableName}} function onSceneUpdate()
    792 B (101 words) - 16:56, 8 February 2014
  • {{lua-function|getSoundGain|object}} {{lua-function-param|object|object to operate on}}
    395 B (46 words) - 23:02, 8 February 2014
  • {{lua-function|isAnimationOver|object}} {{lua-function-param|object|object to operate on}}
    443 B (47 words) - 22:59, 8 February 2014
  • {{lua-function|quit|}} function onSceneUpdate()
    219 B (27 words) - 15:55, 8 February 2014
  • {{lua-function|getScale|object}} {{lua-function-param|object|object to operate on}}
    574 B (78 words) - 23:18, 8 February 2014
  • {{lua-function|setScale|object, vector}} {{lua-function-param|object|object to operate on}}
    826 B (93 words) - 23:19, 8 February 2014
  • {{lua-function|rayHit|start, end}} {{lua-function-param|start|ray start}}
    1 KB (121 words) - 23:28, 8 February 2014
  • {{lua-function|getScene|sceneName}} {{lua-function-param|sceneName|scene name}}
    526 B (63 words) - 22:55, 8 February 2014
  • {{lua-function|getClone|object}} {{lua-function-param|object|object to operate on}}
    1 KB (214 words) - 15:03, 15 February 2014
  • {{lua-function|getGravity|}} [[Category:Lua scripting]]
    203 B (19 words) - 16:59, 8 February 2014
  • {{lua-function|setGravity|gravity}} {{lua-function-param|gravity|gravity constant}}
    317 B (35 words) - 23:22, 8 February 2014
  • {{lua-function|changeCurrentCamera|object}} {{lua-function-param|object|object to operate on}}
    437 B (45 words) - 23:05, 8 February 2014
  • {{lua-function|enableCameraLayer|camera, scene}} {{lua-function-param|camera|camera}}
    512 B (67 words) - 21:21, 3 April 2014
  • {{lua-function|disableCameraLayer|object}} {{lua-function-param|object|object to operate on}}
    257 B (26 words) - 23:11, 8 February 2014
  • {{lua-function|enableRenderToTexture|object, texture, width, height}} {{lua-function-param|object|object to operate on}}
    581 B (67 words) - 23:12, 8 February 2014
  • {{lua-function|disableRenderToTexture|object}} {{lua-function-param|object|object to operate on}}
    292 B (31 words) - 23:12, 8 February 2014
  • {{lua-function|loadLevel|file}} {{lua-function-param|file|level file to load}}
    210 B (25 words) - 22:55, 8 February 2014
  • {{lua-function|enableShadow|object, bool}} {{lua-function-param|object|object to operate on}}
    563 B (74 words) - 23:16, 8 February 2014
  • {{lua-function|setBehaviorVariable|object, behaviorId, variableName, value}} [[Category:Lua scripting]]
    792 B (110 words) - 16:58, 8 February 2014
  • {{lua-function|setSoundGain|object, gain}} {{lua-function-param|object|object to operate on}}
    363 B (45 words) - 23:03, 8 February 2014
  • {{lua-function|setCameraFogDistance|object, distance}} {{lua-function-param|object|object to operate on}}
    240 B (24 words) - 23:08, 8 February 2014
  • {{lua-function|isCameraFogEnabled|object}} {{lua-function-param|object|object to operate on}}
    211 B (25 words) - 23:06, 8 February 2014
  • {{lua-function|getCameraFogDistance|object}} {{lua-function-param|object|object to operate on}}
    196 B (21 words) - 23:06, 8 February 2014
  • {{lua-function|getProjectedPoint|object, point}} {{lua-function-param|object|object to operate on}}
    231 B (24 words) - 23:13, 8 February 2014
  • {{lua-function|enableCameraFog|object, bool}} {{lua-function-param|object|object to operate on}}
    253 B (30 words) - 23:10, 8 February 2014
  • {{lua-function|setLightRadius|object, radius}} {{lua-function-param|object|object to operate on}}
    240 B (27 words) - 23:30, 8 February 2014
  • {{lua-function|getLightSpotAngle|object}} {{lua-function-param|object|object to operate on}}
    189 B (21 words) - 23:29, 8 February 2014
  • {{lua-function|getLightSpotExponent|object}} {{lua-function-param|object|object to operate on}}
    195 B (21 words) - 23:29, 8 February 2014
  • {{lua-function|setLightSpotExponent|object, exponent}} {{lua-function-param|object|object to operate on}}
    255 B (27 words) - 23:32, 8 February 2014
  • {{lua-function|setLightSpotAngle|object, angle}} {{lua-function-param|object|object to operate on}}
    240 B (27 words) - 23:31, 8 February 2014
  • {{lua-function|getAngularFactor|object}} {{lua-function-param|object|object to operate on}}
    188 B (20 words) - 23:24, 8 February 2014
  • {{lua-function|getMass|object}} {{lua-function-param|object|object to operate on}}
    179 B (21 words) - 23:24, 8 February 2014
  • {{lua-function|getFriction|object}} {{lua-function-param|object|object to operate on}}
    185 B (20 words) - 23:25, 8 February 2014
  • {{lua-function|getRestitution|object}} {{lua-function-param|object|object to operate on}}
    191 B (20 words) - 23:25, 8 February 2014
  • {{lua-function|getTorque|object}} {{lua-function-param|object|object to operate on}}
    183 B (21 words) - 23:27, 8 February 2014
  • {{lua-function|getCentralForce|object}} {{lua-function-param|object|object to operate on}}
    196 B (22 words) - 23:27, 8 February 2014
  • {{lua-function|setRestitution|object, restitution}} {{lua-function-param|object|object to operate on}}
    263 B (27 words) - 23:25, 8 February 2014
  • {{lua-function|setFriction|object, friction}} {{lua-function-param|object|object to operate on}}
    248 B (27 words) - 23:25, 8 February 2014
  • {{lua-function|setMass|object, mass}} {{lua-function-param|object|object to operate on}}
    228 B (27 words) - 23:25, 8 February 2014
  • {{lua-function|setAngularFactor|object, vector}} {{lua-function-param|object|object to operate on}}
    251 B (27 words) - 23:24, 8 February 2014
  • {{lua-function|setLinearFactor|object, vector}} {{lua-function-param|object|object to operate on}}
    241 B (26 words) - 23:24, 8 February 2014
  • {{lua-function|setAngularDamping|object, damping}} {{lua-function-param|object|object to operate on}}
    256 B (27 words) - 23:23, 8 February 2014
  • {{lua-function|setLinearDamping|object, damping}} {{lua-function-param|object|object to operate on}}
    257 B (28 words) - 23:23, 8 February 2014
  • {{lua-function|getLinearDamping|object}} {{lua-function-param|object|object to operate on}}
    192 B (21 words) - 23:23, 8 February 2014
  • {{lua-function|getAngularDamping|object}} {{lua-function-param|object|object to operate on}}
    190 B (20 words) - 23:23, 8 February 2014
  • {{lua-function|getLinearFactor|object}} {{lua-function-param|object|object to operate on}}
    186 B (20 words) - 23:24, 8 February 2014

View (previous 500 | next 500) (20 | 50 | 100 | 250 | 500)

Personal tools
Namespaces
Variants
Views
Actions
Navigation
Toolbox