scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Dom improvements #64

Closed sminnee closed 9 years ago

sminnee commented 9 years ago

This patch improves the scene DOM to make it easier to build up custom tags and properties and monitor changes in them. It was written as part of my work getting physics attached to the scene, but it's not specifically related to it.

As well as event observation changes, I've also split out Element and SpatialElement, so we have a base class that doesn't necessarily need a position/rotation/scale. Right now, audio is the only element that's non-spatial, but in principle you could have others (I used it for <physics>, <material>, etc)