Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Droopy hover-car...

Racer Plisskin
Rezerator
Join date: 2 Jan 2005
Posts: 147
07-26-2005 15:42
Hey all,

Can anyone help shed some light on why my hover_car script works just fine as long as the car is moving but the front end droops down when the car stops moving?

The root prim is in the back of the car. I would have though the "center of gravity" controlled the cars position but could it be the case that the car is 'hanging' from the root prims centerpoint?

I tried setting Y rotation status to FALSE while hovering but that just makes the car handle badly in all aspects of hover flight.

Thanks for any help/tips anyone can give me on how to fix this problem.

Racer P.
_____________________
"What's important in life is not how many breaths we get to take but those moments that take our breath away." -- Jaques Cousteau

"A thin line separated serious homicidal purpose from buffoonery." -- Dean Koontz

"CanYouFixTheSpaceBarOnMyKeyboard?" -- Email to Helpdesk
Racer Plisskin
Rezerator
Join date: 2 Jan 2005
Posts: 147
07-26-2005 22:01
ARGH!!!

The wiki is wrong...

THIS:
CODE

//Remove all the flags
llRemoveVehicleFlags(-1);
does _NOT_ remove all the flags... (Should this be a bug report?)

THIS:
CODE

remove_ALL_vehicle_flags() {
llRemoveVehicleFlags(
VEHICLE_FLAG_NO_DEFLECTION_UP | // Prevents linear deflection parallel to world-z axis
VEHICLE_FLAG_LIMIT_ROLL_ONLY | // Removes vertical attraction for changes in vehicle pitch
VEHICLE_FLAG_HOVER_WATER_ONLY | // Hover only pays attention to water level
VEHICLE_FLAG_HOVER_TERRAIN_ONLY | // Hover only pays attention to terrain height
VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT | // Hover only pays attention to global height
VEHICLE_FLAG_HOVER_UP_ONLY | // Hover only pushes up
VEHICLE_FLAG_LIMIT_MOTOR_UP | // Prevents ground vehicles from motoring into the sky
VEHICLE_FLAG_MOUSELOOK_STEER | // Makes vehicle try to turn toward mouselook direction
VEHICLE_FLAG_MOUSELOOK_BANK | // Makes vehicle try to turn toward mouselook direction assuming banking is enabled
VEHICLE_FLAG_CAMERA_DECOUPLED); // Causes the camera look-at axis to NOT move when the vehicle rotates
}
Does!

I knew if I messed with the code long enough I'd figure it out... ;)

My problem is that I _THOUGHT_ that "VEHICLE_FLAG_LIMIT_ROLL_ONLY" had been removed as part of the "-1" call but it wasn't... Hover_Car script works great now. :)

Hope this helps someone else who gets stuck on a vehical flag problem.

Racer P.
_____________________
"What's important in life is not how many breaths we get to take but those moments that take our breath away." -- Jaques Cousteau

"A thin line separated serious homicidal purpose from buffoonery." -- Dean Koontz

"CanYouFixTheSpaceBarOnMyKeyboard?" -- Email to Helpdesk