Game Development Community

IsPointinside on dedicated server

by Thomas Huehn · in Torque Game Engine · 12/06/2007 (11:33 am) · 2 replies

I did not find any documentation / thread about it but it seams that ispointinside does not work on dedicated server ?!

Maybe because the interior is not loaded. Anybody did get the same problem ?

#1
12/06/2007 (11:45 am)
I just found out why:

isPointInside uses gClientContainer.castRay !

To fix it i replaced it with gServerContainer.castRay. Now it works :)
#2
12/07/2007 (12:26 pm)
Btw. ispointinside is broken anyway if you plan to use it, fix it before. There is a "static bool lastValue = false;" as return result. And if it ever gets true it will allways return true if inside or not.