Difference between revisions of "LlSetVehicleRotationParam"

From Second Life Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|func_id=235|func_sleep=0.0|func_energy=10.0
|func_id=235|func_sleep=0.0|func_energy=10.0
|func=llSetVehicleRotationParam
|func=llSetVehicleRotationParam
|p1_type=integer|p1_name=param|p2_type=rotation|p2_name=rot
|p1_type=integer|p1_name=param|p1_desc=VEHICLE_* flag
|p2_type=rotation|p2_name=rot
|func_footnote
|func_footnote
|func_desc=Sets the specified vehicle rotation parameter
|func_desc=Sets the vehicle rotation parameter {{LSLP|param}} to {{LSLP|rot}}.
|return_text
|return_text
|spec
|spec
|caveats
|caveats
|constants={{LSL Constants/Vehicle|type=rotation}}
|constants={{LSL Constants/Vehicle|type=rotation}}
|examples
|examples=The reference frame can be computed and set in two steps:
# Place the vehicle with front facing east(red arrow) and with left side facing north(green arrow)
# [[llSetVehicleRotationParam]]( [[VEHICLE_REFERENCE_FRAME]], [[ZERO_ROTATION]] / [[llGetRootRotation]]());
|helpers
|helpers
|also_functions=*{{LSLG|llSetVehicleFloatParam}}
|also_functions={{LSL DefineRow||{{LSLG|llSetVehicleFloatParam}}|Sets a vehicle float parameter}}
*{{LSLG|llSetVehicleVectorParam}}
{{LSL DefineRow||{{LSLG|llSetVehicleVectorParam}}|Sets a vehicle vector parmeter}}
|also_events
|also_events
|also_tests
|also_tests
|also_articles
|also_articles={{LSL DefineRow||[[Linden Vehicle Tutorial]]}}
|notes
|notes
|permission
|permission
|negative_index
|sort=SetVehicleRotationParam
|cat1=Vehicle
|cat1=Vehicle
|cat2
|cat2

Latest revision as of 11:13, 17 September 2014

Summary

Function: llSetVehicleRotationParam( integer param, rotation rot );

Sets the vehicle rotation parameter param to rot.

• integer param VEHICLE_* flag
• rotation rot

Constant Description
VEHICLE_REFERENCE_FRAME 44 rotation of vehicle axes relative to local frame

Examples

The reference frame can be computed and set in two steps:

  1. Place the vehicle with front facing east(red arrow) and with left side facing north(green arrow)
  2. llSetVehicleRotationParam( VEHICLE_REFERENCE_FRAME, ZERO_ROTATION / llGetRootRotation());

See Also

Functions

•  llSetVehicleFloatParam Sets a vehicle float parameter
•  llSetVehicleVectorParam Sets a vehicle vector parmeter

Articles

•  Linden Vehicle Tutorial

Deep Notes

Search JIRA for related Issues

Signature

function void llSetVehicleRotationParam( integer param, rotation rot );