|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
08-03-2007 19:37
Any way to slow down avatar flight? I have scuba gear that uses the fly button to do the ...ummm...scubaing, but it's way too fast. It's way too easy to suddenly find your self 50 feet above the water.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
08-03-2007 23:25
Well, unless you have the source to the scuba attachments, it won't be pretty. Presumably they're taking controls and using them to do physics on the agent. (At least that's what I do with my swimming attachment.) It *may* be possible to add another layer of taking control, though, since they almost certainly are "passing" the controls as well as accepting them (otherwise they couldn't take advantage of the avatar rotation "glitch" without which it would be really hard to turn!). So if that worked, in theory, you could apply some counteracting force, but the dynamics would be very strange and unpredictable. It might be easier and yield better results to just script the scuba stuff from scratch.
(Oh, one tip from bitter experience: don't try to debug something like this on no-fly land. Some extreme forces seem to be applied to agents who attempt to "fly" on a no-fly parcel.)
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
08-04-2007 06:53
The source? Well I did make the scuba gear. When attached it produces bubbles and sounds and when one clicks the fly button it puts the avatar into a swimming animation. The issue is the fly button, I want the avatars to not be able to move as fast as the default flight.
Thanks
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
08-04-2007 09:27
From: Max Pitre The source? Well I did make the scuba gear. When attached it produces bubbles and sounds and when one clicks the fly button it puts the avatar into a swimming animation. The issue is the fly button, I want the avatars to not be able to move as fast as the default flight. Ah, ok, so it's kinda a scuba AO, I guess. Well, my swimming thing takes all controls, so I haven't tried exactly this, but it seems like it should work to llTakeControls() accepting but not passing just CONTROL_UP to prevent normal flight, and when that control event occurs, llApplyImpulse() upward by some function of llGetMass()... maybe with llSetBuoyancy(0.7)-ish.
|
|
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
|
08-04-2007 14:10
take a look at the flight feather script that speeds you up and uses llApplyImpulse and llSetForce. you can do the same to slow yourself down. i used the same commands on my paraplane -LW
_____________________
L$ is the root of all evil videos work! thanks SL 
|