Yeah, sounds like a pretty cool camera system :D
Yes, the sensors all a little wierd. GetDetect Depth will actually return the amount the sensor has penatrated. Also, The sensors are local to the rigid body so if say you want it to measure altitude, you'll have to continuosly change it's location. However, the sensors are probably faster than blitz linepicks so you might as well use it:
[edit]To tell you the truth, i can't get it to work either :/ Haven't actually tried using a sensor till now, although I'll probably have a use for them. I'm not sure what the demo is doing that I'm not.
Yes, the sensors all a little wierd. GetDetect Depth will actually return the amount the sensor has penatrated. Also, The sensors are local to the rigid body so if say you want it to measure altitude, you'll have to continuosly change it's location. However, the sensors are probably faster than blitz linepicks so you might as well use it:
TFormPoint EntityX(lander),0,EntityY(Lander),0,Lander TOKSENSOR_SetLineSensor Sensor,0,0,0,TFormedX(),TFormedY(),TFormedZ() TOKSIM_Advance .01,1 altitude#=TOKRB_GetY(lunarb)-TOKSENSOR_GetDetectDepth(Sensor)
[edit]To tell you the truth, i can't get it to work either :/ Haven't actually tried using a sensor till now, although I'll probably have a use for them. I'm not sure what the demo is doing that I'm not.