Difference between revisions of "Template:LSL Constants/Vehicle"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Claire called at 1:40
|also_events={{LSL DefineRow||{{LSLG|run_time_permissions}}|Permission receiver event}}
|also_functions={{LSL DefineRow||{{LSLG|llGetPermissions}}|Get the permissions granted}}
{{LSL DefineRow||{{LSLG|llGetPermissionsKey}}|Get the avatar who granted permissions.}}
|also_articles={{LSL DefineRow||{{LSLGC|Permissions/Script|Script permissions}}|}}
{{#vardefine:display_type|{{#switch:{{{type|}}}|float=|rotation=|vector=|t}}}}{{#if:{{{no_wrapper|}}}||{{{!}} {{Prettytable}}
{{#vardefine:display_type|{{#switch:{{{type|}}}|float=|rotation=|vector=|t}}}}{{#if:{{{no_wrapper|}}}||{{{!}} {{Prettytable}}
{{!}}- {{Hl2}}
{{!}}- {{Hl2}}
Line 13: Line 20:
{{!}} 33
{{!}} 33
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the vehicle to achieve full angular deflection}}
{{!}} exponential timescale for the vehicle to achieve full angular deflection
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_ANGULAR_FRICTION_TIMESCALE}}
{{#ifeq:{{{type|vector}}}|vector|{{!}} {{LSLG|VEHICLE_ANGULAR_FRICTION_TIMESCALE}}
{{!}} 17
{{!}} 17
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} vector of timescales for exponential decay of angular velocity about the three vehicle axes}}
{{!}} vector of timescales for exponential decay of angular velocity about the three vehicle axes
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE}}
{{#ifeq:{{{type|float}}}|float|{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE}}
{{!}} 35
{{!}} 35
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the angular motor's effectiveness to decay toward zero}}
{{!}} exponential timescale for the angular motor's effectiveness to decay toward zero
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DIRECTION}}
{{#ifeq:{{{type|vector}}}|vector|{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DIRECTION}}
{{!}} 19
{{!}} 19
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} angular velocity that the vehicle will try to achieve}}
{{!}} angular velocity that the vehicle will try to achieve
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_TIMESCALE}}
{{#ifeq:{{{type|float}}}|float|{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_TIMESCALE}}
{{!}} 34
{{!}} 34
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
Line 78: Line 85:
{{!}} 29
{{!}} 29
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the vehicle to redirect its velocity to be along its x-axis}}
{{!}} exponential timescale for the vehicle to redirect its velocity to be along its x-axis
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_LINEAR_FRICTION_TIMESCALE}}
{{#ifeq:{{{type|vector}}}|vector|{{!}} {{LSLG|VEHICLE_LINEAR_FRICTION_TIMESCALE}}
{{!}} 16
{{!}} 16
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} vector of timescales for exponential decay of linear velocity along the three vehicle axes}}
{{!}} vector of timescales for exponential decay of linear velocity along the three vehicle axes
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE}}
{{#ifeq:{{{type|float}}}|float|{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE}}
{{!}} 31
{{!}} 31
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the linear motor's effectiveness to decay toward zero}}
{{!}} exponential timescale for the linear motor's effectiveness to decay toward zero
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DIRECTION}}
{{#ifeq:{{{type|vector}}}|vector|{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DIRECTION}}
{{!}} 18
{{!}} 18
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} linear velocity that the vehicle will try to achieve}}
{{!}} linear velocity that the vehicle will try to achieve
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_TIMESCALE}}
{{#ifeq:{{{type|float}}}|float|{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_TIMESCALE}}
{{!}} 30
{{!}} 30
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the vehicle to achive its full linear motor velocity}}
{{!}} exponential timescale for the vehicle to achive its full linear motor velocity
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_OFFSET}}
{{#ifeq:{{{type|vector}}}|vector|{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_OFFSET}}
{{!}} 20
{{!}} 20
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} {{LSLG|offset}} from the {{LSLG|llGetCenterOfMass|center of mass}} of the vehicle where the linear motor is applied.}}
{{!}} {{LSLG|offset}} from the {{LSLG|llGetCenterOfMass|center of mass}} of the vehicle where the linear motor is applied.
{{!}}-
{{!}}-}}
{{#ifeq:{{{type|rotation}}}|rotation|{{!}} {{LSLG|VEHICLE_REFERENCE_FRAME}}
{{#ifeq:{{{type|rotation}}}|rotation|{{!}} {{LSLG|VEHICLE_REFERENCE_FRAME}}
{{!}} 44
{{!}} 44
{{#if:{{#var:display_type}}|{{!}} {{LSLG|rotation}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|rotation}}}}
{{!}} rotation of vehicle axes relative to local frame}}
{{!}} rotation of vehicle axes relative to local frame
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-}}
{{!}} {{LSLG|VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY}}
{{#ifeq:{{{type|float}}}|float|{{!}} {{LSLG|VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY}}
{{!}} 36
{{!}} 36
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}

Revision as of 12:47, 24 February 2007

Claire called at 1:40

|also_events=|-style="vertical-align:top;" | style="color:gray;" |•  | run_time_permissions | style="color:gray;" | – | Permission receiver event | |also_functions=|-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissions | style="color:gray;" | – | Get the permissions granted | |-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissionsKey | style="color:gray;" | – | Get the avatar who granted permissions. | |also_articles=|-style="vertical-align:top;" | style="color:gray;" |•  | Script permissions | style="color:gray;" | | |


Constant Type Description
VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY 32 float slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_ANGULAR_DEFLECTION_TIMESCALE 33 float exponential timescale for the vehicle to achieve full angular deflection
VEHICLE_ANGULAR_FRICTION_TIMESCALE 17 vector vector of timescales for exponential decay of angular velocity about the three vehicle axes
VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE 35 float exponential timescale for the angular motor's effectiveness to decay toward zero
VEHICLE_ANGULAR_MOTOR_DIRECTION 19 vector angular velocity that the vehicle will try to achieve
VEHICLE_ANGULAR_MOTOR_TIMESCALE 34 float exponential timescale for the vehicle to achive its full angular motor velocity
VEHICLE_BANKING_EFFICIENCY 38 float slider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
VEHICLE_BANKING_MIX 39 float slider between 0 (static banking) and 1 (dynamic banking)
VEHICLE_BANKING_TIMESCALE 40 float exponential timescale for the banking behavior to take full effect
VEHICLE_BUOYANCY 27 float slider between -1 (double-gravity) and 1 (full anti-gravity)
VEHICLE_HOVER_HEIGHT 24 float height the vehicle will try to hover.
VEHICLE_HOVER_EFFICIENCY 25 float slider between 0 (bouncy) and 1 (critically damped) hover behavior
VEHICLE_HOVER_TIMESCALE 26 float period of time for the vehicle to achieve its hover height
VEHICLE_LINEAR_DEFLECTION_EFFICIENCY 28 float slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_LINEAR_DEFLECTION_TIMESCALE 29 float exponential timescale for the vehicle to redirect its velocity to be along its x-axis
VEHICLE_LINEAR_FRICTION_TIMESCALE 16 vector vector of timescales for exponential decay of linear velocity along the three vehicle axes
VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE 31 float exponential timescale for the linear motor's effectiveness to decay toward zero
VEHICLE_LINEAR_MOTOR_DIRECTION 18 vector linear velocity that the vehicle will try to achieve
VEHICLE_LINEAR_MOTOR_TIMESCALE 30 float exponential timescale for the vehicle to achive its full linear motor velocity
VEHICLE_LINEAR_MOTOR_OFFSET 20 vector offset from the center of mass of the vehicle where the linear motor is applied.
VEHICLE_REFERENCE_FRAME 44 rotation rotation of vehicle axes relative to local frame
VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY 36 float slider between 0 (bouncy) and 1 (critically damped) attraction of vehicle z-axis to world z-axis (vertical)
VEHICLE_VERTICAL_ATTRACTION_TIMESCALE 37 float exponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)

Claire called at 1:40

|also_events=|-style="vertical-align:top;" | style="color:gray;" |•  | run_time_permissions | style="color:gray;" | – | Permission receiver event | |also_functions=|-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissions | style="color:gray;" | – | Get the permissions granted | |-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissionsKey | style="color:gray;" | – | Get the avatar who granted permissions. | |also_articles=|-style="vertical-align:top;" | style="color:gray;" |•  | Script permissions | style="color:gray;" | | |


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

Claire called at 1:40

|also_events=|-style="vertical-align:top;" | style="color:gray;" |•  | run_time_permissions | style="color:gray;" | – | Permission receiver event | |also_functions=|-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissions | style="color:gray;" | – | Get the permissions granted | |-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissionsKey | style="color:gray;" | – | Get the avatar who granted permissions. | |also_articles=|-style="vertical-align:top;" | style="color:gray;" |•  | Script permissions | style="color:gray;" | | |


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.

Claire called at 1:40

|also_events=|-style="vertical-align:top;" | style="color:gray;" |•  | run_time_permissions | style="color:gray;" | – | Permission receiver event | |also_functions=|-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissions | style="color:gray;" | – | Get the permissions granted | |-style="vertical-align:top;" | style="color:gray;" |•  | llGetPermissionsKey | style="color:gray;" | – | Get the avatar who granted permissions. | |also_articles=|-style="vertical-align:top;" | style="color:gray;" |•  | Script permissions | style="color:gray;" | | |


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 vehicle to 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)
Test

Claire called at 1:40

-style="vertical-align:top;" •  run_time_permissions Permission receiver event -style="vertical-align:top;" •  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the avatar who granted permissions. -style="vertical-align:top;" •  Script permissions


VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY 32 float slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_ANGULAR_DEFLECTION_TIMESCALE 33 float exponential timescale for the vehicle to achieve full angular deflection
VEHICLE_ANGULAR_FRICTION_TIMESCALE 17 vector vector of timescales for exponential decay of angular velocity about the three vehicle axes
VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE 35 float exponential timescale for the angular motor's effectiveness to decay toward zero
VEHICLE_ANGULAR_MOTOR_DIRECTION 19 vector angular velocity that the vehicle will try to achieve
VEHICLE_ANGULAR_MOTOR_TIMESCALE 34 float exponential timescale for the vehicle to achive its full angular motor velocity
VEHICLE_BANKING_EFFICIENCY 38 float slider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
VEHICLE_BANKING_MIX 39 float slider between 0 (static banking) and 1 (dynamic banking)
VEHICLE_BANKING_TIMESCALE 40 float exponential timescale for the banking behavior to take full effect
VEHICLE_BUOYANCY 27 float slider between -1 (double-gravity) and 1 (full anti-gravity)
VEHICLE_HOVER_HEIGHT 24 float height the vehicle will try to hover.
VEHICLE_HOVER_EFFICIENCY 25 float slider between 0 (bouncy) and 1 (critically damped) hover behavior
VEHICLE_HOVER_TIMESCALE 26 float period of time for the vehicle to achieve its hover height
VEHICLE_LINEAR_DEFLECTION_EFFICIENCY 28 float slider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_LINEAR_DEFLECTION_TIMESCALE 29 float exponential timescale for the vehicle to redirect its velocity to be along its x-axis
VEHICLE_LINEAR_FRICTION_TIMESCALE 16 vector vector of timescales for exponential decay of linear velocity along the three vehicle axes
VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE 31 float exponential timescale for the linear motor's effectiveness to decay toward zero
VEHICLE_LINEAR_MOTOR_DIRECTION 18 vector linear velocity that the vehicle will try to achieve
VEHICLE_LINEAR_MOTOR_TIMESCALE 30 float exponential timescale for the vehicle to achive its full linear motor velocity
VEHICLE_LINEAR_MOTOR_OFFSET 20 vector offset from the center of mass of the vehicle where the linear motor is applied.
VEHICLE_REFERENCE_FRAME 44 rotation rotation of vehicle axes relative to local frame
VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY 36 float slider between 0 (bouncy) and 1 (critically damped) attraction of vehicle z-axis to world z-axis (vertical)
VEHICLE_VERTICAL_ATTRACTION_TIMESCALE 37 float exponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)
Test