Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
How to destroy a scene node?

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


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact