Jump to content
  • Advertisement
Sign in to follow this  
Theesmk

how to search for a entity in a scene graph using c++ ?

This topic is 917 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

You need to provide a few more details. Is this your own scene graph? Is it from a library/engine or some sort? What type of scene graph is it etc. The more details you provide the better answer you will get.

Edited by Nanoha

Share this post


Link to post
Share on other sites
you traverse through all elements and compare the appropriate property of every element to the condition you're looking for.
takes probably less time to implement it than to post here ;)

Share this post


Link to post
Share on other sites
Scene graphs are not designed for searching. Store your scene/character in a linear array and search that.


L. Spiro

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!