The integer constant VEHICLE_BANKING_COEF has the value ?

VEHICLE_BANKING_COEF, the angle of the roll rotation, and sometimes the vehicle's velocity along its preferred axis of motion. The VEHICLE_BANKING_COEF can vary between -1 and +1. When it is positive then any positive rotation (by the right-hand rule) about the roll-axis will effect a (negative) torque around the yaw-axis, making it turn to the right--that is the vehicle will lean into the turn, which is how real airplanes and motorcycle's work. Negating the banking coefficient will make it so that the vehicle leans to the outside of the turn (not very "physical" but might allow interesting vehicles so why not?).

Syntax

integer VEHICLE_BANKING_COEF = ?;

See also

Constants

ConstantTypeDescription
VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY32floatslider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_ANGULAR_DEFLECTION_TIMESCALE33floatexponential timescale for the vehicle to achieve full angular deflection
VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE35floatexponential timescale for the angular motor's effectiveness to decay toward zero
VEHICLE_ANGULAR_MOTOR_TIMESCALE34floatexponential timescale for the vehicle to achive its full angular motor velocity
VEHICLE_BANKING_EFFICIENCY38floatslider between -1 (leans out of turns), 0 (no banking), and +1 (leans into turns)
VEHICLE_BANKING_MIX39floatslider between 0 (static banking) and 1 (dynamic banking)
VEHICLE_BANKING_TIMESCALE40floatexponential timescale for the banking behavior to take full effect
VEHICLE_BUOYANCY27floatslider between -1 (double-gravity) and 1 (full anti-gravity)
VEHICLE_HOVER_HEIGHT24floatheight the vehicle will try to hover.
VEHICLE_HOVER_EFFICIENCY25floatslider between 0 (bouncy) and 1 (critically damped) hover behavior
VEHICLE_HOVER_TIMESCALE26floatperiod of time for the vehicle to achieve its hover height
VEHICLE_LINEAR_DEFLECTION_EFFICIENCY28floatslider between 0 (no deflection) and 1 (maximum strength)
VEHICLE_LINEAR_DEFLECTION_TIMESCALE29floatexponential timescale for the vehicle to redirect its velocity to be along its x-axis
VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE31floatexponential timescale for the linear motor's effectiveness to decay toward zero
VEHICLE_LINEAR_MOTOR_TIMESCALE30floatexponential timescale for the vehicleto achive its full linear motor velocity
VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY36floatslider between 0 (bouncy) and 1 (critically damped) attraction of vehicle z-axis to world z-axis (vertical)
VEHICLE_VERTICAL_ATTRACTION_TIMESCALE37floatexponential timescale for the vehicle to align its z-axis to the world z-axis (vertical)
VEHICLE_ANGULAR_FRICTION_TIMESCALE17vectorvector of timescales for exponential decay of angular velocity about the three vehicle axes
VEHICLE_ANGULAR_MOTOR_DIRECTION19vectorangular velocity that the vehicle will try to achieve
VEHICLE_LINEAR_FRICTION_TIMESCALE16vectorvector of timescales for exponential decay of linear velocity along the three vehicle axes
VEHICLE_LINEAR_MOTOR_DIRECTION18vectorlinear velocity that the vehicle will try to achieve
VEHICLE_LINEAR_MOTOR_OFFSET20vectoroffset from the center of mass of the vehicle where the linear motor is applied.
VEHICLE_REFERENCE_FRAME44rotationrotation of vehicle axes relative to local frame

Functions