Alpha Zaius
llLol()
Join date: 13 Mar 2004
Posts: 1,187
|
11-26-2004 07:04
Howdy! Im making a jetpack, I want it to be very realistic.. I want the jetpack to make the avatar float, without using llSetBuoyancy() the buoyancy thing is a problem, because it allows others to push you and make you keep moving forever (until you hit a house, or land, or something), then you start going out of control again..  My question is, since I saw the script before, how I can make my avatar stay in place WITHOUT using llSetBuoyancy() or llMoveToTarget() (since that wont do good) I saw it used with llPushObject() or llApplyImpulse() in a script, mentioned above.. But I cant remember the way they did it.. I know it is found in most of those wings lots of people have... any ideas? Thanks!
|
Pete Fats
Geek
Join date: 18 Apr 2003
Posts: 648
|
11-26-2004 07:11
Why not use the vehicle system? Using it, you could specify an automagic hover over ground height. Otherwise, llMoveToTarget would probably be your best bet.
|
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
|
11-26-2004 09:00
if(llGetVel() != NULL_VECTOR) { llApplyImpulse(llGetVel() * -1 * llGetMass()) } I think. Realize, I haven't coded in LSL in about a month or so, and don't have an active SL account at the moment (in debt up to my eyeballs), so no way of testing that. Realize you'll need to put that in a timer or something.
_____________________
</sarcasm>
|