Client Side Pointer Help
by Devildrew · in Torque Game Engine · 07/10/2004 (9:36 am) · 4 replies
I am trying to get a pointer to a client side object:
myObject* obj = dynamic_cast(Sim::findObject("nameofobject"));
i tried this command but it keeps getting me the server side object.
Thanks in advance.
myObject* obj = dynamic_cast
i tried this command but it keeps getting me the server side object.
Thanks in advance.
About the author
#2
I am not sure if i am doing this the right way, but htis is what i am trying to accomplish.
Thanks.
07/10/2004 (1:53 pm)
I am writing an fx object that does the geometry and textures on the client side and the collision on the server side. I would like to make instances of this object so an object that is the same can share texture and geometry using a pointer to the client object. I am not sure if i am doing this the right way, but htis is what i am trying to accomplish.
Thanks.
#3
07/10/2004 (5:19 pm)
Client side objects don't get names; they are just ghosts of what's on the server. So you want multiple instances of the object to share information? Wouldn't a static work for that?
#4
Thanks.
07/14/2004 (5:34 am)
I created a Manger like your Texture Manager for sharing my specialized geometry, everything works great.Thanks.
Associate Kyle Carter