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

From Second Life Wiki
Jump to navigation Jump to search
(Fix attempt)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#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|}}}||{{{!}} class="sortable" {{Prettytable}}
{{!}}- {{Hl2}}
{{!}}- {{Hl2}}
! colspan="2" {{!}}Constant
! {{!}}Constant
{{#if:{{#var:display_type}}|! Type}}
! title="value" {{!}}
! Description
{{#if:{{#var:display_type}}|!Type}}
{{!}}-}}
! class="unsortable" {{!}}Description
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY}}
}}
{{!}} 32
 
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{#ifeq:{{{type|float}}}|float|
{{!}} {{LSL Const|VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY|integer|32}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between 0 (no deflection) and 1 (maximum strength)
{{!}} slider between 0 (no deflection) and 1 (maximum strength)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_ANGULAR_DEFLECTION_TIMESCALE}}
 
{{!}} 33
{{!}} {{LSL Const|VEHICLE_ANGULAR_DEFLECTION_TIMESCALE|integer|33}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{!}} exponential timescale for the vehicle to achieve full angular deflection}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}} exponential timescale for the vehicle to achieve full angular deflection
{{!}} {{LSLG|VEHICLE_ANGULAR_FRICTION_TIMESCALE}}
{{!}}-
{{!}} 17
 
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} {{LSL Const|VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE|integer|35}}
{{!}} vector of timescales for exponential decay of angular velocity about the three vehicle axes}}
{{!}}{{#var:value}}
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE}}
{{!}} exponential timescale for the angular motor's effectiveness to decay toward zero
{{!}} 35
{{!}}-
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
 
{{!}} exponential timescale for the angular motor's effectiveness to decay toward zero}}
{{!}} {{LSL Const|VEHICLE_ANGULAR_MOTOR_TIMESCALE|integer|34}}
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}{{#var:value}}
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_DIRECTION}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} 19
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} angular velocity that the vehicle will try to achieve}}
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}} {{LSLG|VEHICLE_ANGULAR_MOTOR_TIMESCALE}}
{{!}} 34
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} exponential timescale for the vehicle to achive its full angular motor velocity
{{!}} exponential timescale for the vehicle to achive its full angular motor velocity
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_BANKING_EFFICIENCY}}
 
{{!}} 38
{{!}} {{LSL Const|VEHICLE_BANKING_EFFICIENCY|integer|38}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
{{!}} slider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_BANKING_MIX}}
 
{{!}} 39
{{!}} {{LSL Const|VEHICLE_BANKING_MIX|integer|39}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between 0 (static banking) and 1 (dynamic banking)
{{!}} slider between 0 (static banking) and 1 (dynamic banking)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_BANKING_TIMESCALE}}
 
{{!}} 40
{{!}} {{LSL Const|VEHICLE_BANKING_TIMESCALE|integer|40}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} exponential timescale for the banking behavior to take full effect
{{!}} exponential timescale for the banking behavior to take full effect
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_BUOYANCY}}
 
{{!}} 27
{{!}} {{LSL Const|VEHICLE_BUOYANCY|integer|27}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{!}} slider between -1 (double-{{LSLG|gravity}}) and 1 (full anti-gravity)
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between -1 (double-[[gravity]]) and 1 (full anti-gravity)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_HOVER_HEIGHT}}
 
{{!}} 24
{{!}} {{LSL Const|VEHICLE_HOVER_HEIGHT|integer|24}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} height the vehicle will try to hover.
{{!}} height the vehicle will try to hover.
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_HOVER_EFFICIENCY}}
 
{{!}} 25
{{!}} {{LSL Const|VEHICLE_HOVER_EFFICIENCY|integer|25}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between 0 (bouncy) and 1 (critically damped) hover behavior
{{!}} slider between 0 (bouncy) and 1 (critically damped) hover behavior
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_HOVER_TIMESCALE}}
 
{{!}} 26
{{!}} {{LSL Const|VEHICLE_HOVER_TIMESCALE|integer|26}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} period of time for the vehicle to achieve its hover height
{{!}} period of time for the vehicle to achieve its hover height
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_LINEAR_DEFLECTION_EFFICIENCY}}
 
{{!}} 28
{{!}} {{LSL Const|VEHICLE_LINEAR_DEFLECTION_EFFICIENCY|integer|28}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} slider between 0 (no deflection) and 1 (maximum strength)
{{!}} slider between 0 (no deflection) and 1 (maximum strength)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_LINEAR_DEFLECTION_TIMESCALE}}
 
{{!}} 29
{{!}} {{LSL Const|VEHICLE_LINEAR_DEFLECTION_TIMESCALE|integer|29}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}}{{#var:value}}
{{!}} exponential timescale for the vehicle to redirect its velocity to be along its x-axis}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}} exponential timescale for the vehicle to redirect its velocity to be along its x-axis
{{!}} {{LSLG|VEHICLE_LINEAR_FRICTION_TIMESCALE}}
{{!}}-
{{!}} 16
 
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}} {{LSL Const|VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE|integer|31}}
{{!}} vector of timescales for exponential decay of linear velocity along the three vehicle axes}}
{{!}}{{#var:value}}
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE}}
{{!}} exponential timescale for the linear motor's effectiveness to decay toward zero
{{!}} 31
{{!}}-
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
 
{{!}} exponential timescale for the linear motor's effectiveness to decay toward zero}}
{{!}} {{LSL Const|VEHICLE_LINEAR_MOTOR_TIMESCALE|integer|30}}
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
{{!}}{{#var:value}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_DIRECTION}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} 18
{{!}} exponential timescale for the vehicleto achive its full linear motor velocity
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{!}}-
{{!}} linear velocity that the vehicle will try to achieve}}
 
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}} {{LSL Const|VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY|integer|36}}
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_TIMESCALE}}
{{!}}{{#var:value}}
{{!}} 30
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} slider between 0 (bouncy) and 1 (critically damped) attraction of ''vehicle'' z-axis to [[world]] z-axis (vertical)
{{!}} exponential timescale for the vehicle to achive its full linear motor velocity}}
{{!}}-
{{#ifeq:{{{type|vector}}}|vector|{{!}}-
 
{{!}} {{LSLG|VEHICLE_LINEAR_MOTOR_OFFSET}}
{{!}} {{LSL Const|VEHICLE_VERTICAL_ATTRACTION_TIMESCALE|integer|37}}
{{!}} 20
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|vector}}}}
{{#if:{{#var:display_type}}|{{!}} [[float]]}}
{{!}} {{LSLG|offset}} from the {{LSLG|llGetCenterOfMass|center of mass}} of the vehicle where the linear motor is applied.}}
{{!}} exponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)
{{!}}-
}}
{{#ifeq:{{{type|vector}}}|vector|
{{!}} {{LSL Const|VEHICLE_ANGULAR_FRICTION_TIMESCALE|integer|17}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[vector]]}}
{{!}} vector of timescales for exponential decay of angular velocity about the three vehicle axes
{{!}}-
 
{{!}} {{LSL Const|VEHICLE_ANGULAR_MOTOR_DIRECTION|integer|19}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[vector]]}}
{{!}} angular velocity that the vehicle will try to achieve
{{!}}-
 
{{!}} {{LSL Const|VEHICLE_LINEAR_FRICTION_TIMESCALE|integer|16}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[vector]]}}
{{!}} vector of timescales for exponential decay of linear velocity along the three vehicle axes
{{!}}-
 
{{!}} {{LSL Const|VEHICLE_LINEAR_MOTOR_DIRECTION|integer|18}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[vector]]}}
{{!}} linear velocity that the vehicle will try to achieve
{{!}}-
{{!}}-
{{#ifeq:{{{type|rotation}}}|rotation|{{!}} {{LSLG|VEHICLE_REFERENCE_FRAME}}
 
{{!}} 44
{{!}} {{LSL Const|VEHICLE_LINEAR_MOTOR_OFFSET|integer|20}}
{{#if:{{#var:display_type}}|{{!}} {{LSLG|rotation}}}}
{{!}}{{#var:value}}
{{!}} rotation of vehicle axes relative to local frame}}
{{#if:{{#var:display_type}}|{{!}} [[vector]]}}
{{#ifeq:{{{type|float}}}|float|{{!}}-
{{!}} [[offset]] from the [[llGetCenterOfMass|center of mass]] of the vehicle where the linear motor is applied.
{{!}} {{LSLG|VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY}}
{{!}} 36
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} slider between 0 (bouncy) and 1 (critically damped) attraction of ''vehicle'' z-axis to {{LSLG|world}} z-axis (vertical)
{{!}}-
{{!}}-
{{!}} {{LSLG|VEHICLE_VERTICAL_ATTRACTION_TIMESCALE}}
}}
{{!}} 37
{{#ifeq:{{{type|rotation}}}|rotation|
{{#if:{{#var:display_type}}|{{!}} {{LSLG|float}}}}
{{!}} {{LSL Const|VEHICLE_REFERENCE_FRAME|integer|44}}
{{!}} exponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)}}
{{!}}{{#var:value}}
{{#if:{{#var:display_type}}|{{!}} [[rotation]]}}
{{!}} rotation of vehicle axes relative to local frame
{{!}}-
{{!}}-
}}
{{#if:{{{no_wrapper|}}}||{{!}}} }}
{{#if:{{{no_wrapper|}}}||{{!}}} }}
<noinclude>{{{{FULLPAGENAME}}|type=rotation}}{{{{FULLPAGENAME}}|type=vector}}{{{{FULLPAGENAME}}|type=float}}
<noinclude>{{{{FULLPAGENAME}}|type=rotation}}{{{{FULLPAGENAME}}|type=vector}}{{{{FULLPAGENAME}}|type=float}}</noinclude>
{|{{Prettytable}}
{{{{FULLPAGENAME}}|no_wrapper=true}}
|}</noinclude>

Latest revision as of 21:28, 15 November 2022

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_MOTOR_DECAY_TIMESCALE 35 float exponential timescale for the angular motor's effectiveness to decay toward zero
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_MOTOR_DECAY_TIMESCALE 31 float exponential timescale for the linear motor's effectiveness to decay toward zero
VEHICLE_LINEAR_MOTOR_TIMESCALE 30 float exponential timescale for the vehicleto achive its full linear motor velocity
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)
VEHICLE_ANGULAR_FRICTION_TIMESCALE 17 vector vector of timescales for exponential decay of angular velocity about the three vehicle axes
VEHICLE_ANGULAR_MOTOR_DIRECTION 19 vector angular velocity that the vehicle will try to achieve
VEHICLE_LINEAR_FRICTION_TIMESCALE 16 vector vector of timescales for exponential decay of linear velocity along the three vehicle axes
VEHICLE_LINEAR_MOTOR_DIRECTION 18 vector linear velocity that the vehicle will try to achieve
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
Constant Description
VEHICLE_REFERENCE_FRAME 44 rotation of vehicle axes relative to local frame
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.
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)