Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stabilizing a Physical Platform

Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
05-20-2008 13:28
This is my first attempt at any kind of vehicle, though I'm not really try for a vehicle as such.

I want this platform to rise up in a stable fashion, regardless of what is on it or how the cargo is distributed.

This has been kicking my butt, as soon as it lifts off the platform slowly [sometimes quickly] flips over. It seems I need a dynamic stabilization system but I'm at a loss on where to start.

I've found there are angular_motors as well but I dodn't seem to be having much luck using this stuff.

Any suggestions are appreciated.

Here is chunk of the code I started with

llSetRot(ZERO_ROTATION);
llSetPrimitiveParams([PRIM_PHYSICS,TRUE]);
llSetVehicleType(VEHICLE_TYPE_BALLOON);
llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <10.0, 0.0, 10.0>;);
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
05-20-2008 13:41
The parameters which change a vehicle's rotation to face its velocity are angular deflection ones (if I've got this the right way round - I always get confused between angular and linear deflection). I don't think that balloons have any as default though.

In any case, the parameters to keep something upright are the vertical attractor ones.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
05-20-2008 13:41
Not quite my gig but maybe turn off at least X/Y axis rotation wth llSetStatus?

http://wiki.secondlife.com/wiki/LlSetStatus

edit: ..or you can listen to Ordinal, which is probably a better idea.
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
05-20-2008 14:05
Vertical attractor did the trick.

Thanks
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
05-20-2008 18:13
You can set the physical prim to a non-rotating state with

llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, FALSE);

This way it will not rotate when moving...