Skip to content
lsl.devlsl.devLSL Dev

VehicleFloatParam

Constants in the VehicleFloatParam enum.

All constant groups

At a glance, from the LSL definitions
// Otherinteger VEHICLE_BUOYANCY = 27;  // Vehicle float parameter (range -1.0 to 1.0) defining buoyancy, where -1.0 represents double gravity and 1.0 represents full anti-gravity.// VEHICLE_ANGULAR_*integer VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32;  // Vehicle float parameter (range 0.0 to 1.0) acting as a scalar to modulate the strength of angular deflection, reorienting the vehicle's preferred axis toward its true velocity.integer VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33;  // Vehicle float parameter specifying the exponential timescale for the vehicle to achieve full angular deflection, reorienting its preferred axis of motion to match its true velocity.integer VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35;  // Vehicle float parameter specifying the exponential timescale (in seconds) for the angular motor's magnitude and effectiveness to decay toward zero.integer VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34;  // Vehicle float parameter specifying the exponential timescale for the vehicle's angular motor to achieve full power and velocity.// VEHICLE_BANKING_*integer VEHICLE_BANKING_EFFICIENCY = 38;  // Vehicle float parameter (range -1.0 to 1.0) controlling banking efficiency, where negative values lean out of turns and positive values lean into turns.integer VEHICLE_BANKING_MIX = 39;  // Vehicle float parameter (range 0.0 (static) to 1.0) (dynamic) controlling the mix between static banking (scales only with roll angle) and dynamic banking (additionally scales with linear speed).integer VEHICLE_BANKING_TIMESCALE = 40;  // Vehicle float parameter specifying the exponential timescale for the banking behavior to take full effect.// VEHICLE_HOVER_*integer VEHICLE_HOVER_EFFICIENCY = 25;  // Vehicle float parameter (range 0.0 to 1.0) controlling hover damping, where 0.0 is bouncy and 1.0 is critically damped.integer VEHICLE_HOVER_HEIGHT = 24;  // Vehicle float parameter specifying the height at which the vehicle attempts to hover.integer VEHICLE_HOVER_TIMESCALE = 26;  // Vehicle float parameter specifying the timescale (period of time in seconds) for the vehicle to achieve its hover height.// VEHICLE_LINEAR_*integer VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28;  // Vehicle float parameter (range 0.0 to 1.0) modulating the efficiency and strength of linear deflection.integer VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29;  // Vehicle float parameter specifying the exponential timescale for the vehicle to redirect its linear velocity along its preferred X-axis.integer VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31;  // Vehicle float parameter specifying the exponential timescale (in seconds) for the linear motor's magnitude and effectiveness to decay toward zero.integer VEHICLE_LINEAR_MOTOR_TIMESCALE = 30;  // Vehicle float parameter specifying the exponential timescale for the vehicle to reach its full linear motor velocity.// VEHICLE_VERTICAL_*integer VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36;  // Vehicle float parameter (range 0.0 to 1.0) controlling vertical attraction stability (0.0 is wobbly/bouncy, 1.0 is critically damped/firm) to keep the vehicle upright.integer VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37;  // Vehicle float parameter specifying the exponential timescale (in seconds) for the vehicle to rotate and align its local Z-axis (up) with the world Z-axis (vertical).

Constants

ConstantTypeValueDescription
VEHICLE_ANGULAR_DEFLECTION_EFFICIENCYinteger32Vehicle float parameter (range 0.0 to 1.0) acting as a scalar to modulate the strength of angular deflection, reorienting the vehicle's preferred axis toward its true velocity.
VEHICLE_ANGULAR_DEFLECTION_TIMESCALEinteger33Vehicle float parameter specifying the exponential timescale for the vehicle to achieve full angular deflection, reorienting its preferred axis of motion to match its true velocity.
VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALEinteger35Vehicle float parameter specifying the exponential timescale (in seconds) for the angular motor's magnitude and effectiveness to decay toward zero.
VEHICLE_ANGULAR_MOTOR_TIMESCALEinteger34Vehicle float parameter specifying the exponential timescale for the vehicle's angular motor to achieve full power and velocity.
VEHICLE_BANKING_EFFICIENCYinteger38Vehicle float parameter (range -1.0 to 1.0) controlling banking efficiency, where negative values lean out of turns and positive values lean into turns. This parameter makes banking affect steering; use angular motors to bank. 0.0 means no banking.
VEHICLE_BANKING_MIXinteger39Vehicle float parameter (range 0.0 (static) to 1.0) (dynamic) controlling the mix between static banking (scales only with roll angle) and dynamic banking (additionally scales with linear speed).
VEHICLE_BANKING_TIMESCALEinteger40Vehicle float parameter specifying the exponential timescale for the banking behavior to take full effect. This is another way to scale the strength of the banking effect, however it affects the term that is proportional to the difference between what the banking behavior is trying to do, and what the vehicle is actually doing.
VEHICLE_BUOYANCYinteger27Vehicle float parameter (range -1.0 to 1.0) defining buoyancy, where -1.0 represents double gravity and 1.0 represents full anti-gravity.
VEHICLE_HOVER_EFFICIENCYinteger25Vehicle float parameter (range 0.0 to 1.0) controlling hover damping, where 0.0 is bouncy and 1.0 is critically damped.
VEHICLE_HOVER_HEIGHTinteger24Vehicle float parameter specifying the height at which the vehicle attempts to hover. Set to 0.0 to disable hover.
VEHICLE_HOVER_TIMESCALEinteger26Vehicle float parameter specifying the timescale (period of time in seconds) for the vehicle to achieve its hover height.
VEHICLE_LINEAR_DEFLECTION_EFFICIENCYinteger28Vehicle float parameter (range 0.0 to 1.0) modulating the efficiency and strength of linear deflection. That is, its a simple scalar for modulating the strength of linear deflection.
VEHICLE_LINEAR_DEFLECTION_TIMESCALEinteger29Vehicle float parameter specifying the exponential timescale for the vehicle to redirect its linear velocity along its preferred X-axis. It is another way to specify how much time it takes for the vehicle's linear velocity to be redirected to its preferred axis of motion.
VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALEinteger31Vehicle float parameter specifying the exponential timescale (in seconds) for the linear motor's magnitude and effectiveness to decay toward zero.
VEHICLE_LINEAR_MOTOR_TIMESCALEinteger30Vehicle float parameter specifying the exponential timescale for the vehicle to reach its full linear motor velocity.
VEHICLE_VERTICAL_ATTRACTION_EFFICIENCYinteger36Vehicle float parameter (range 0.0 to 1.0) controlling vertical attraction stability (0.0 is wobbly/bouncy, 1.0 is critically damped/firm) to keep the vehicle upright.
VEHICLE_VERTICAL_ATTRACTION_TIMESCALEinteger37Vehicle float parameter specifying the exponential timescale (in seconds) for the vehicle to rotate and align its local Z-axis (up) with the world Z-axis (vertical).

Used by