Difference between revisions of "LlSetVehicleFloatParam"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|p2_type=float|p2_name=value
|p2_type=float|p2_name=value
|func_footnote
|func_footnote
|func_desc=Sets the vehicle float parameter '''param''' to '''value'''.
|func_desc=Sets the vehicle float parameter {{LSLP|param}} to {{LSLP|value}}.
|return_text
|return_text
|spec
|spec
Line 13: Line 13:
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||{{LSLG|llSetVehicleRotationParam}}|Sets a vehicle rotation parameter}}
{{LSL DefineRow||[[llSetVehicleRotationParam]]|Sets a vehicle rotation parameter}}
{{LSL DefineRow||{{LSLG|llSetVehicleVectorParam}}|Sets a vehicle vector parameter}}
{{LSL DefineRow||[[llSetVehicleVectorParam]]|Sets a vehicle vector parameter}}
|also_events
|also_events
|also_tests
|also_tests
|also_articles=[[Linden Vehicle Tutorial]]
|also_articles={{LSL DefineRow||[[Linden Vehicle Tutorial]]}}
|notes
|notes
|permission
|permission
|negative_index
|sort=SetVehicleFloatParam
|cat1=Vehicle
|cat1=Vehicle
|cat2
|cat2

Latest revision as of 09:57, 7 June 2012

Summary

Function: llSetVehicleFloatParam( integer param, float value );
0.0 Forced Delay
10.0 Energy

Sets the vehicle float parameter param to value.

• integer param VEHICLE_* flag
• float value

Constant Description
VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY 32 slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_ANGULAR_DEFLECTION_TIMESCALE 33 exponential timescale for the vehicle to achieve full angular deflection
VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE 35 exponential timescale for the angular motor's effectiveness to decay toward zero
VEHICLE_ANGULAR_MOTOR_TIMESCALE 34 exponential timescale for the vehicle to achive its full angular motor velocity
VEHICLE_BANKING_EFFICIENCY 38 slider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
VEHICLE_BANKING_MIX 39 slider between 0 (static banking) and 1 (dynamic banking)
VEHICLE_BANKING_TIMESCALE 40 exponential timescale for the banking behavior to take full effect
VEHICLE_BUOYANCY 27 slider between -1 (double-gravity) and 1 (full anti-gravity)
VEHICLE_HOVER_HEIGHT 24 height the vehicle will try to hover.
VEHICLE_HOVER_EFFICIENCY 25 slider between 0 (bouncy) and 1 (critically damped) hover behavior
VEHICLE_HOVER_TIMESCALE 26 period of time for the vehicle to achieve its hover height
VEHICLE_LINEAR_DEFLECTION_EFFICIENCY 28 slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_LINEAR_DEFLECTION_TIMESCALE 29 exponential timescale for the vehicle to redirect its velocity to be along its x-axis
VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE 31 exponential timescale for the linear motor's effectiveness to decay toward zero
VEHICLE_LINEAR_MOTOR_TIMESCALE 30 exponential timescale for the vehicleto achive its full linear motor velocity
VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY 36 slider between 0 (bouncy) and 1 (critically damped) attraction of vehicle z-axis to world z-axis (vertical)
VEHICLE_VERTICAL_ATTRACTION_TIMESCALE 37 exponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)

Examples

See Also

Functions

•  llSetVehicleRotationParam Sets a vehicle rotation parameter
•  llSetVehicleVectorParam Sets a vehicle vector parameter

Articles

•  Linden Vehicle Tutorial

Deep Notes

Signature

function void llSetVehicleFloatParam( integer param, float value );