Saturday, September 1, 2007

(OOC) Its a Submarine, sort of

OK, finally got it to where it works...for the most part. Having a LOT of dificulty capping the unit at surface level. If I try to prevent it from applying impulses via the linear.z props (setting it to 0 or -n when Altitude > water) results it in it slamming straight to the bottom... No idea why changing linear.z +=12; to +=0; causes it to slam to the bottom.


So I decided to use llMoveToTarget. Like most of LL functions, its nearly useless except for one or two SPECIFIC and LIMITED applications (like things that follow set courses)...you can't move it to ONE specified axis, oh no...have to do the whole XYZ. AND add in the joy it doesn't just move it to the coords and stop, it moves it to the coords AND KEEPS IT THERE until you issue the llStopMoveToCoordinates command. LL has a knack for making commands useless.



So on the surface it stutters....for some reason, even with a buoyancy that causes it to sink when stationary, it CLIMBS when moving forward or backward, making it hit the limit and stutter as its pushed back down. Underwater, it runs fine...just suface level motion is not good.

No comments: