remove object from scene?
zz85 opened this issue · comments
Started testing J3D after watching the session from onGameStart. really pretty cool to export from unity.
just wondering if there's a ability to remove objects from scene? There's a engine.scene.add() but i don't think i seen a scene.remove() ?
you're right, I actually did not implemented it yet. I'll add scene.remove() as soon as I can :)
ok: added methods remove() and removeAll() to scene. the remove method takes a J3D.Transform as argument, and an optional second arg, a boolean specifying whether to search the hierarchy recursively. Same methods were added to transform.
Here's a demo: http://www.everyday3d.com/j3d/demo/017_SceneManagement.html
that demo looks good, thanks! :)