 juantar Registered User |
Quote
|
2012-03-06 04:27:50 |
|
How do I remove a scene node from the scene?
And how do I add a new scene node mesh dynamically (e.g. creating bullets)?
Thank you!
|
 erik Registered User |
Quote
|
2012-03-06 06:02:57 |
|
Removing should work like this:
yourNode.getParent().removeChild(yourNode);
Adding new stuff dynamically: Just create an instance of the mesh scene node and add it into the scene graph where you need it. If you have already a bullet in the scene, you can use createClone() to create a copy of it.
|
 juantar Registered User |
Quote
|
2012-03-19 17:21:55 |
|
Thank you! that worked
|