-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to 👩🚀 Meta.js - The (Virtual) Space Library. 🚀
In order to understand Meta.js you have to make yourself aware of the perspective it takes.
Meta.js puts the user in a fully immersive first person perspective in virtual reality. If you are about to create a experience in which the user moves and acts in virtual space Meta.js is your choice.
For example if you want to create a 3D image slider it's not.
As you may have already guessed you create Meta objects in Meta.js.
A Meta object is the concept or the idea of an object. It can be graphical object, a physical object ('body') or simply the idea of something that 'is there' (and might become physical or graphical present later).
Super abstract, lets get back to real life: You want a cube. Everyone wants cubes. All you got to do is create (instantiate) a Cube:
new Cube();
You don't have take care about any surrounding framework, or render loops or whatever. If you create a new Meta object, like a cube, all of that is already there.
But. You can. You can modify the renderer, the render loop or whatever. If you have the desire to do so.
You create a Cube by typing new Cube(), a Sphere with new Sphere(), etc.
Whatever you create you will always get a Meta object back, unless you passed a false argument as a last parameter to the constructor.
new Cube();
is equivalent to:
new Meta({
graphics: new Graphics({
geometry: new Cube(false)
}, false)
});
This pseudo recursive principle is one of the main concepts of Meta.js that quickly leads you to results but still leaves you the option for customisation.
Void | World | Space | Cycle |
---|---|---|---|
Data | Physics | Graphics | Time |
Meta | Body | Shape | Unit |