Searching for nearby objects - TGB 1.7.4
by Javier Echenique · in Technical Issues · 12/23/2008 (10:49 am) · 1 replies
Hi there,
I'm trying to implement the Microbes functionality from TXB on C# (http://www.garagegames.com/docs/torqueX/official/content/documentation/TorqueX%202D/Tutorials/Microbes.html) using TGB and TorqueScript.
Looking for nearby objects, C# has the function "FindObjects", and for TS I started using the function InitContainerRadiusSearch, since it implements a similar functionality, but when I ran my application I got the following error:
--> "Unable to find function InitContainerRadiusSearch"
and then I realized that InitContainerRadiusSearch isn't implemented on TGB...
There is any function that I could use on TGB instead of InitContainerRadiusSearch to lookup for nearby objects?
Or it's impossible to implement the Microbes functionality on TGB with TS?
Thanks in advance!
I'm trying to implement the Microbes functionality from TXB on C# (http://www.garagegames.com/docs/torqueX/official/content/documentation/TorqueX%202D/Tutorials/Microbes.html) using TGB and TorqueScript.
Looking for nearby objects, C# has the function "FindObjects", and for TS I started using the function InitContainerRadiusSearch, since it implements a similar functionality, but when I ran my application I got the following error:
--> "Unable to find function InitContainerRadiusSearch"
and then I realized that InitContainerRadiusSearch isn't implemented on TGB...
There is any function that I could use on TGB instead of InitContainerRadiusSearch to lookup for nearby objects?
Or it's impossible to implement the Microbes functionality on TGB with TS?
Thanks in advance!
Torque Owner Javier Echenique
I found the answer digging into the documentation...
I'm using now the function pickRadius from the SceneGraph.
Thanks!