tokamak physics thread 4

Blitz3D Forums/Blitz3D Programming/tokamak physics thread 4

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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:

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.