matrix-engine
Version:
basic_timeline improved, VT func setup vide html element id with name arg.- DISABLE RAYCAST DEBUG TEST [2.3.3] Fix for GUI win desktop [2.3.0] DestrucMesh solution & loading convex objs for physics BASIC, SpriteAnimation CPU/texture solution added, Improv
22 lines (17 loc) • 671 B
JavaScript
/**
*@Author Nikola Lukic
*@Description Matrix Engine Api Example
*/
/* globals world App world */
import App from "../program/manifest";
export var runThis = (world) => {
world.Add("square", 1, "MyColoredSquare1");
world.Add("square", 1.1, "MyColoredSquare2");
world.Add("square", 1.2, "MyColoredSquare3");
App.scene.MyColoredSquare1.position.SetX(2.5);
App.scene.MyColoredSquare2.position.SetX(0);
App.scene.MyColoredSquare3.position.SetX(-2.5);
App.scene.MyColoredSquare1.rotation.rotationSpeed.x = 15;
App.scene.MyColoredSquare2.rotation.rotationSpeed.x = 15;
App.scene.MyColoredSquare3.rotation.rotationSpeed.x = 15;
};