|
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
|
03-28-2008 08:00
I'm trying to make a glider that works as an attachment similar to a parachute. I have the falling thing taken care of, I'm just using buoyancy for ease and I can get parts to appear (move) as i need but what I can't fathom is how to let the wearer move around once the gliders wings have deployed.
What sort of calls do I need to do this, is it a question of taking the wearers control inputs and adding a force/impulse when they press forward? And would this work on non-push land?
_____________________
Tread softly upon the Earth for you walk on my face.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-28-2008 10:18
For horizontal velocity, you MIGHT be able to get away with letting the default controls work. You can actually move around in mid jump/fall, though not very fast. Vertically, and if you want more than that slow default movement, you'll probably want to take controls and move via llSetForce(), llMoveToTarget(), llApplyImpulse(), or some combination of them.
It should still be fully functional on no-push land. Not only can your own objects always push you, but you probably won't be using llPushObject(), which is the only function limited by the push restriction as far as I know.
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
03-28-2008 12:54
llSetBounancy is what i use for that type of thing
|
|
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
|
03-28-2008 14:44
One issue I have found with set buoyancy is that it will not counteract the inertia of falling. I have had to employ a force to counteract the falling inertia upon deployment of the glider but thanks for the suggestions.
I was finding llApplyImpulse was either a little severe or pretty ineffectual but I may try llSetForce and see how that helps.
Any pointer for getting the rotation and banking of a real glider in an attachment?
_____________________
Tread softly upon the Earth for you walk on my face.
|