Game Development Community

Cast ray on client side problem

by DIAG · in Torque Game Engine · 07/13/2006 (7:44 am) · 4 replies

Hi all,
Im trying to use the CastRay method (sim/sceneObject.cc line) on the client side. When I do so, I get a crash on line ~1197 specifically:

SceneObjectRef* chain = mOverflowBin.nextInBin;

Can CastRay be used on the client? Any suggestions?
Cheers
Damien

#1
07/13/2006 (11:12 am)
Of course it can, it'd help to have some reference on how you are actually trying to use it though.
#2
07/13/2006 (11:26 am)
Have you taken a look at guiCrossHairHud yet? You should.
#3
07/14/2006 (5:32 am)
Cheers Stefan. I needed to use gClientContainer when casting the ray.
Works well now! Thanks again.
Damien
#4
07/14/2006 (6:38 am)
I was changing stuff in that very file when I saw your question.

Glad you got it working! (: