From: Rebecca Naidoo
Hi.
I'm looking to make a vehicle that does not move, it needs to hover in the air at the same location while a user uses the vehicle class to rotate it.
Could someone help me out with how to make it stay still
I guess it is a physical wehicle we are talking about?
In that case these lines will bring it to a halt:
llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );
gLinearMotor = ZERO_VECTOR;
llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, gLinearMotor);
angular_motor = ZERO_VECTOR;
llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, angular_motor);
The HOVER parameters may come into play depending of what you want
In order to turn it around the Z axis change the Z component for the angular motor:
angular_motor = < 0.0, 0.0, something_you_choose >;
llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, angular_motor);
Remember a resting vehicle may be pushed
