matrix-engine
Version:
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, Improved notify box UI. Test netPos Offset ; dispatchEvent(new CustomEvent(net-rea
21 lines (15 loc) • 518 B
JavaScript
/**
*@Author Nikola Lukic
*@Description Matrix Engine Api Example
*/
export var runThis = (matrixEngine) => {
let world = matrixEngine.matrixWorld.world;
window.world = world;
let App = matrixEngine.App;
world.Add("square", 1, "MyColoredSquareRayObject");
App.scene.MyColoredSquareRayObject.position.SetX(0);
canvas.addEventListener('mousedown', (ev) => {
matrixEngine.raycaster.checkingProcedure(ev);
});
// App.scene.MyColoredSquare1.rotation.rotationSpeed.x = 15;
};