Difference between revisions of "LlSetVehicleVectorParam"

From Second Life Wiki
Jump to navigation Jump to search
m (o_o who in their right mind would use llTargetOmega in a vehicle?)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSLFunctionAll|func_id=234|func_sleep=0.0|func_energy=10.0|func=llSetVehicleVectorParam|p1_type=integer|p1_name=param|p2_type=rotation|p2_name=rot|func_footnote=sets the specified vehicle vector parameter|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL Function
|func_id=234|func_sleep=0.0|func_energy=10.0
|func=llSetVehicleVectorParam
|p1_type=integer|p1_name=param|p1_desc=VEHICLE_* flag
|p2_type=vector|p2_name=vec
|func_desc=Sets the vehicle vector parameter {{LSLP|param}} to {{LSLP|vec}}.
|return_text
|spec
|caveats
|constants={{LSL Constants/Vehicle|type=vector}}
|examples
|helpers
|also_functions={{LSL DefineRow||{{LSLG|llSetVehicleRotationParam}}|Sets a vehicle rotation parameter}}
{{LSL DefineRow||{{LSLG|llSetVehicleFloatParam}}|Sets a vehicle float parameter}}
|also_events
|also_tests
|also_articles={{LSL DefineRow||[[Linden Vehicle Tutorial]]}}
|notes=* [[VEHICLE_ANGULAR_MOTOR_DIRECTION]] may conflict with any active [[llTargetOmega]] set in the root prim and prevent vehicle turns.  Call llTargetOmega with a gain of 0 to disable it.
|permission
|negative_index
|sort=SetVehicleVectorParam
|cat1=Vehicle
|cat2
|cat3
|cat4
}}

Latest revision as of 09:55, 7 June 2012

Summary

Function: llSetVehicleVectorParam( integer param, vector vec );
0.0 Forced Delay
10.0 Energy

Sets the vehicle vector parameter param to vec.

• integer param VEHICLE_* flag
• vector vec

Constant Description
VEHICLE_ANGULAR_FRICTION_TIMESCALE 17 vector of timescales for exponential decay of angular velocity about the three vehicle axes
VEHICLE_ANGULAR_MOTOR_DIRECTION 19 angular velocity that the vehicle will try to achieve
VEHICLE_LINEAR_FRICTION_TIMESCALE 16 vector of timescales for exponential decay of linear velocity along the three vehicle axes
VEHICLE_LINEAR_MOTOR_DIRECTION 18 linear velocity that the vehicle will try to achieve
VEHICLE_LINEAR_MOTOR_OFFSET 20 offset from the center of mass of the vehicle where the linear motor is applied.

Examples

Notes

See Also

Functions

•  llSetVehicleRotationParam Sets a vehicle rotation parameter
•  llSetVehicleFloatParam Sets a vehicle float parameter

Articles

•  Linden Vehicle Tutorial

Deep Notes

Signature

function void llSetVehicleVectorParam( integer param, vector vec );