Panda3D
|
One wheel of a BulletVehicle. Instances should not be created directly but using the factory method BulletVehicle::create_wheel(). More...
Public Member Functions | |
float | getBrake () |
Returns the amount of braking force currently applied. More... | |
LPoint3 | getChassisConnectionPointCs () |
Returns the point where the wheel is connected to the chassis. More... | |
float | getClippedInvConnectionPointCs () |
float | getDeltaRotation () |
float | getEngineForce () |
Returns the amount of accelleration force currently applied. More... | |
float | getFrictionSlip () |
Returns how slippery the tyres are. More... | |
float | getMaxSuspensionForce () |
Returns the maximum force (weight) the suspension can handle. More... | |
float | getMaxSuspensionTravelCm () |
PandaNode | getNode () |
Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously. More... | |
BulletWheelRaycastInfo | getRaycastInfo () |
float | getRollInfluence () |
Returns the factor by which roll forces are scaled. See set_roll_influence. More... | |
float | getRotation () |
float | getSkidInfo () |
float | getSteering () |
Returns the steering angle in degrees. More... | |
float | getSuspensionRelativeVelocity () |
float | getSuspensionRestLength () |
Returns the length of the suspension when the vehicle is standing still. More... | |
float | getSuspensionStiffness () |
Returns the stiffness of the suspension. More... | |
LVector3 | getWheelAxleCs () |
Returns the normal vector of the wheel axle. More... | |
LVector3 | getWheelDirectionCs () |
Returns the wheel's forward vector relative to the chassis. More... | |
float | getWheelRadius () |
Returns the wheel radius. More... | |
float | getWheelsDampingCompression () |
Returns the damping applied to the compressing suspension. More... | |
float | getWheelsDampingRelaxation () |
Returns the damping applied to the relaxing suspension. More... | |
float | getWheelsSuspensionForce () |
LMatrix4 | getWorldTransform () |
bool | isFrontWheel () |
Determines if a wheel is steerable. More... | |
setBrake (float value) | |
setChassisConnectionPointCs (const LPoint3 pos) | |
Sets the point where the wheel is connected to the chassis. More... | |
setClippedInvConnectionPointCs (float value) | |
setDeltaRotation (float value) | |
setEngineForce (float value) | |
Defines how much force should be used to rotate the wheel. More... | |
setFrictionSlip (float value) | |
Sets the slipperyness of the tyre. More... | |
setFrontWheel (bool value) | |
Sets if the wheel is steerable. More... | |
setMaxSuspensionForce (float value) | |
Sets the maximum suspension force the wheel can handle. More... | |
setMaxSuspensionTravelCm (float value) | |
Sets the maximum distance the suspension can travel out of the resting position in centimeters. More... | |
setNode (PandaNode node) | |
Sets the PandaNode which representates the visual appearance of this wheel. More... | |
setRollInfluence (float value) | |
Defines a scaling factor for roll forces that affect the chassis. 0.0 means no roll - the chassis won't ever flip over - while 1.0 means original physical behaviour. Basically, this allows moving the center of mass up and down. More... | |
setRotation (float value) | |
setSkidInfo (float value) | |
setSteering (float value) | |
Sets the steering angle. More... | |
setSuspensionRelativeVelocity (float value) | |
setSuspensionStiffness (float value) | |
Sets how stiff the suspension shall be. More... | |
setWheelAxleCs (const LVector3 axle) | |
Determines the wheel axle normal vector. More... | |
setWheelDirectionCs (const LVector3 dir) | |
Sets the wheel's forward vector. (Most likely orthogonal to the axle vector.) More... | |
setWheelRadius (float value) | |
Sets the wheel radius. More... | |
setWheelsDampingCompression (float value) | |
Sets the damping forces applied when the suspension gets compressed. More... | |
setWheelsDampingRelaxation (float value) | |
Sets the damping forces applied when the suspension relaxes. More... | |
setWheelsSuspensionForce (float value) | |
setWorldTransform (const LMatrix4 mat) | |
One wheel of a BulletVehicle. Instances should not be created directly but using the factory method BulletVehicle::create_wheel().
float getBrake | ( | ) |
Returns the amount of braking force currently applied.
LPoint3 getChassisConnectionPointCs | ( | ) |
Returns the point where the wheel is connected to the chassis.
float getClippedInvConnectionPointCs | ( | ) |
float getDeltaRotation | ( | ) |
float getEngineForce | ( | ) |
Returns the amount of accelleration force currently applied.
float getFrictionSlip | ( | ) |
Returns how slippery the tyres are.
float getMaxSuspensionForce | ( | ) |
Returns the maximum force (weight) the suspension can handle.
float getMaxSuspensionTravelCm | ( | ) |
PandaNode getNode | ( | ) |
Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously.
BulletWheelRaycastInfo getRaycastInfo | ( | ) |
float getRollInfluence | ( | ) |
Returns the factor by which roll forces are scaled. See set_roll_influence.
float getRotation | ( | ) |
float getSkidInfo | ( | ) |
float getSteering | ( | ) |
Returns the steering angle in degrees.
float getSuspensionRelativeVelocity | ( | ) |
float getSuspensionRestLength | ( | ) |
Returns the length of the suspension when the vehicle is standing still.
float getSuspensionStiffness | ( | ) |
Returns the stiffness of the suspension.
LVector3 getWheelAxleCs | ( | ) |
Returns the normal vector of the wheel axle.
LVector3 getWheelDirectionCs | ( | ) |
Returns the wheel's forward vector relative to the chassis.
float getWheelRadius | ( | ) |
Returns the wheel radius.
float getWheelsDampingCompression | ( | ) |
Returns the damping applied to the compressing suspension.
float getWheelsDampingRelaxation | ( | ) |
Returns the damping applied to the relaxing suspension.
float getWheelsSuspensionForce | ( | ) |
LMatrix4 getWorldTransform | ( | ) |
bool isFrontWheel | ( | ) |
Determines if a wheel is steerable.
setBrake | ( | float | value | ) |
setChassisConnectionPointCs | ( | const LPoint3 | pos | ) |
Sets the point where the wheel is connected to the chassis.
setClippedInvConnectionPointCs | ( | float | value | ) |
setDeltaRotation | ( | float | value | ) |
setEngineForce | ( | float | value | ) |
Defines how much force should be used to rotate the wheel.
setFrictionSlip | ( | float | value | ) |
Sets the slipperyness of the tyre.
setFrontWheel | ( | bool | value | ) |
Sets if the wheel is steerable.
setMaxSuspensionForce | ( | float | value | ) |
Sets the maximum suspension force the wheel can handle.
setMaxSuspensionTravelCm | ( | float | value | ) |
Sets the maximum distance the suspension can travel out of the resting position in centimeters.
setNode | ( | PandaNode | node | ) |
Sets the PandaNode which representates the visual appearance of this wheel.
setRollInfluence | ( | float | value | ) |
Defines a scaling factor for roll forces that affect the chassis. 0.0 means no roll - the chassis won't ever flip over - while 1.0 means original physical behaviour. Basically, this allows moving the center of mass up and down.
setRotation | ( | float | value | ) |
setSkidInfo | ( | float | value | ) |
setSteering | ( | float | value | ) |
Sets the steering angle.
setSuspensionRelativeVelocity | ( | float | value | ) |
setSuspensionStiffness | ( | float | value | ) |
Sets how stiff the suspension shall be.
setWheelAxleCs | ( | const LVector3 | axle | ) |
Determines the wheel axle normal vector.
setWheelDirectionCs | ( | const LVector3 | dir | ) |
Sets the wheel's forward vector. (Most likely orthogonal to the axle vector.)
setWheelRadius | ( | float | value | ) |
Sets the wheel radius.
setWheelsDampingCompression | ( | float | value | ) |
Sets the damping forces applied when the suspension gets compressed.
setWheelsDampingRelaxation | ( | float | value | ) |
Sets the damping forces applied when the suspension relaxes.
setWheelsSuspensionForce | ( | float | value | ) |
setWorldTransform | ( | const LMatrix4 | mat | ) |