SuperTuxKart
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
KartProperties Class Reference

This class stores the properties of a kart. More...

#include <kart_properties.hpp>

Public Types

enum  TerrainImpulseType { IMPULSE_NONE, IMPULSE_NORMAL, IMPULSE_TO_DRIVELINE }
 STK can add an impulse to push karts away from the track in case of a kart-track collision. More...
 

Public Member Functions

 KartProperties (const std::string &filename="")
 The constructor initialises all values with invalid values. More...
 
 ~KartProperties ()
 Destructor, dereferences the kart model. More...
 
void copyForPlayer (const KartProperties *source, HandicapLevel h=HANDICAP_NONE)
 Copies this KartProperties to another one. More...
 
void copyFrom (const KartProperties *source)
 Copies this KartProperties to another one. More...
 
void getAllData (const XMLNode *root)
 Actually reads in the data from the xml file. More...
 
void checkAllSet (const std::string &filename)
 Checks if all necessary physics values are indeed defines. More...
 
bool isInGroup (const std::string &group) const
 
bool operator< (const KartProperties &other) const
 
const AbstractCharacteristicgetCharacteristic () const
 Returns the characteristics for this kart. More...
 
const AbstractCharacteristicgetCombinedCharacteristic () const
 Returns the characteristics for this kart combined with the base characteristic. More...
 
MaterialgetIconMaterial () const
 Returns the material for the kart icons. More...
 
video::ITexture * getMinimapIcon () const
 Returns the texture to use in the minimap, or NULL if not defined. More...
 
KartModelgetKartModelCopy (std::shared_ptr< RenderInfo > ri=nullptr) const
 Returns a pointer to the KartModel object. More...
 
const KartModelgetMasterKartModel () const
 Returns a pointer to the main KartModel object. More...
 
void setHatMeshName (const std::string &hat_name)
 Sets the name of a mesh to be used for this kart. More...
 
core::stringw getName () const
 Returns the name of this kart. More...
 
const std::string getNonTranslatedName () const
 
const std::string & getIdent () const
 Returns the internal identifier of this kart. More...
 
const std::string & getKartType () const
 Returns the type of this kart. More...
 
MaterialgetShadowMaterial () const
 Returns the shadow texture to use. More...
 
const std::string & getAbsoluteIconFile () const
 Returns the absolute path of the icon file of this kart. More...
 
const int getCustomSfxId (SFXManager::CustomSFX type) const
 Returns custom sound effects for this kart. More...
 
int getVersion () const
 Returns the version of the .kart file. More...
 
const video::SColor & getColor () const
 Returns the dot color to use for this kart in the race gui. More...
 
int getShape () const
 Returns the number of edges for the polygon used to draw the dot of this kart on the mini map of the race gui. More...
 
const std::vector< std::string > & getGroups () const
 Returns the list of groups this kart belongs to. More...
 
const std::string & getEngineSfxType () const
 Returns the engine type (used to change sfx depending on kart size). More...
 
float getFrictionSlip () const
 Returns friction slip. More...
 
float getWheelBase () const
 Returns the wheel base (distance front to rear axis). More...
 
const Vec3getGravityCenterShift () const
 Returns a shift of the center of mass (lowering the center of mass makes the karts more stable. More...
 
float getCollisionTerrainImpulse () const
 Returns an artificial impulse to push karts away from the terrain it hits. More...
 
TerrainImpulseType getTerrainImpulseType () const
 Returns what kind of impulse STK should use in case of a kart-track collision. More...
 
float getCollisionImpulse () const
 Returns the (artificial) collision impulse this kart will apply to another kart in case of a non-frontal collision. More...
 
float getCollisionImpulseTime () const
 Returns how long the collision impulse should be applied. More...
 
float getRestitution (float speed) const
 Returns the restitution factor for this kart. More...
 
const AIPropertiesgetAIPropertiesForDifficulty () const
 Returns a pointer to the AI properties. More...
 
const std::string & getKartDir () const
 Returns the full path where the files for this kart are stored. More...
 
const Vec3getBevelFactor () const
 Returns the bevel factor (!=0 indicates to use a bevelled box). More...
 
const float getPhysicalWheelPosition () const
 Returns position of the physical wheel is a weighted average of the two ends of the beveled shape. More...
 
float getAccelerationEfficiency () const
 This function returns a weighted average of engine power divide by mass for use as a single number summing-up acceleration's efficiency, e.g. More...
 
float getSuspensionStiffness () const
 
float getSuspensionRest () const
 
float getSuspensionTravel () const
 
bool getSuspensionExpSpringResponse () const
 
float getSuspensionMaxForce () const
 
float getStabilityRollInfluence () const
 
float getStabilityChassisLinearDamping () const
 
float getStabilityChassisAngularDamping () const
 
float getStabilityDownwardImpulseFactor () const
 
float getStabilityTrackConnectionAccel () const
 
std::vector< float > getStabilityAngularFactor () const
 
float getStabilitySmoothFlyingImpulse () const
 
InterpolationArray getTurnRadius () const
 
float getTurnTimeResetSteer () const
 
InterpolationArray getTurnTimeFullSteer () const
 
float getEnginePower () const
 
float getEngineMaxSpeed () const
 
float getEngineGenericMaxSpeed () const
 
float getEngineBrakeFactor () const
 
float getEngineBrakeTimeIncrease () const
 
float getEngineMaxSpeedReverseRatio () const
 
std::vector< float > getGearSwitchRatio () const
 
std::vector< float > getGearPowerIncrease () const
 
float getMass () const
 
float getWheelsDampingRelaxation () const
 
float getWheelsDampingCompression () const
 
float getCameraDistance () const
 
float getCameraForwardUpAngle () const
 
float getCameraBackwardUpAngle () const
 
float getJumpAnimationTime () const
 
float getLeanMax () const
 
float getLeanSpeed () const
 
float getAnvilDuration () const
 
float getAnvilWeight () const
 
float getAnvilSpeedFactor () const
 
float getParachuteFriction () const
 
int getParachuteDuration () const
 
int getParachuteDurationOther () const
 
float getParachuteDurationRankMult () const
 
float getParachuteDurationSpeedMult () const
 
float getParachuteLboundFraction () const
 
float getParachuteUboundFraction () const
 
float getParachuteMaxSpeed () const
 
float getFrictionKartFriction () const
 
float getBubblegumDuration () const
 
float getBubblegumSpeedFraction () const
 
float getBubblegumTorque () const
 
int getBubblegumFadeInTicks () const
 
float getBubblegumShieldDuration () const
 
float getZipperDuration () const
 
float getZipperForce () const
 
float getZipperSpeedGain () const
 
float getZipperMaxSpeedIncrease () const
 
float getZipperFadeOutTime () const
 
float getSwatterDuration () const
 
float getSwatterDistance () const
 
float getSwatterSquashDuration () const
 
float getSwatterSquashSlowdown () const
 
float getPlungerBandMaxLength () const
 
float getPlungerBandForce () const
 
float getPlungerBandDuration () const
 
float getPlungerBandSpeedIncrease () const
 
int getPlungerBandFadeOutTicks () const
 
float getPlungerInFaceTime () const
 
std::vector< float > getStartupTime () const
 
std::vector< float > getStartupBoost () const
 
float getRescueDuration () const
 
float getRescueVertOffset () const
 
float getRescueHeight () const
 
float getExplosionDuration () const
 
float getExplosionRadius () const
 
float getExplosionInvulnerabilityTime () const
 
float getNitroDuration () const
 
float getNitroEngineForce () const
 
float getNitroEngineMult () const
 
float getNitroConsumption () const
 
float getNitroSmallContainer () const
 
float getNitroBigContainer () const
 
float getNitroMaxSpeedIncrease () const
 
float getNitroFadeOutTime () const
 
float getNitroMax () const
 
float getSlipstreamDurationFactor () const
 
float getSlipstreamBaseSpeed () const
 
float getSlipstreamLength () const
 
float getSlipstreamWidth () const
 
float getSlipstreamInnerFactor () const
 
float getSlipstreamMinCollectTime () const
 
float getSlipstreamMaxCollectTime () const
 
float getSlipstreamAddPower () const
 
float getSlipstreamMinSpeed () const
 
float getSlipstreamMaxSpeedIncrease () const
 
int getSlipstreamFadeOutTicks () const
 
float getSkidIncrease () const
 
float getSkidDecrease () const
 
float getSkidMax () const
 
float getSkidTimeTillMax () const
 
float getSkidVisual () const
 
float getSkidVisualTime () const
 
float getSkidRevertVisualTime () const
 
float getSkidMinSpeed () const
 
std::vector< float > getSkidTimeTillBonus () const
 
std::vector< float > getSkidBonusSpeed () const
 
std::vector< float > getSkidBonusTime () const
 
std::vector< float > getSkidBonusForce () const
 
float getSkidPhysicalJumpTime () const
 
float getSkidGraphicalJumpTime () const
 
float getSkidPostSkidRotateFactor () const
 
float getSkidReduceTurnMin () const
 
float getSkidReduceTurnMax () const
 
bool getSkidEnabled () const
 
int8_t getNitroMinConsumptionTicks () const
 Returns minimum time during which nitro is consumed when pressing nitro key, to prevent using nitro in very short bursts.
 
bool isAddon () const
 

Static Public Member Functions

static std::string getHandicapAsString (HandicapLevel h)
 Returns the string representation of a handicap level. More...
 

Private Member Functions

void load (const std::string &filename, const std::string &node)
 Loads the kart properties from a file. More...
 
void combineCharacteristics (HandicapLevel h)
 

Private Attributes

std::string m_root
 Base directory for this kart. More...
 
std::shared_ptr< AIPropertiesm_ai_properties [RaceManager::DIFFICULTY_COUNT]
 AI Properties for this kart, as a separate object in order to reduce dependencies (and therefore compile time) when changing any AI property. More...
 
Materialm_icon_material
 The absolute path of the icon texture to use. More...
 
std::string m_minimap_icon_file
 The minimap icon file. More...
 
video::ITexture * m_minimap_icon
 The texture to use in the minimap. More...
 
std::shared_ptr< KartModelm_kart_model
 The kart model and wheels. More...
 
std::vector< std::string > m_groups
 List of all groups the kart belongs to. More...
 
int m_version
 Version of the .kart file. More...
 
std::vector< int > m_custom_sfx_id
 Vector of custom SFX ids.
 
std::string m_name
 The human readable Name of the kart driver. More...
 
std::string m_ident
 The computer readable-name of the kart driver. More...
 
std::string m_icon_file
 Filename of icon that represents the kart in the statusbar and the character select screen. More...
 
std::string m_shadow_file
 Filename of the image file that contains the shadow for this kart. More...
 
float m_shadow_scale
 Scale of the shadow plane for this kart. More...
 
float m_shadow_x_offset
 X offset of the shadow plane for this kart. More...
 
float m_shadow_z_offset
 Z offset of the shadow plane for this kart. More...
 
Materialm_shadow_material
 The texture with the shadow. More...
 
video::SColor m_color
 Color the represents the kart in the status bar and on the track-view. More...
 
int m_shape
 Number of vertices in polygon when drawing the dot on the mini map. More...
 
std::shared_ptr< AbstractCharacteristicm_characteristic
 The physical, item, etc. More...
 
std::shared_ptr< CombinedCharacteristicm_combined_characteristic
 The base characteristics combined with the characteristics of this kart. More...
 
std::shared_ptr< CachedCharacteristicm_cached_characteristic
 The cached combined characteristics. More...
 
Vec3 m_bevel_factor
 If != 0 a bevelled box shape is used by using a point cloud as a collision shape. More...
 
float m_physical_wheel_position
 The position of the physical wheel is a weighted average of the two ends of the beveled shape. More...
 
int8_t m_nitro_min_consumption
 Minimum time during which nitro is consumed when pressing the nitro key (to prevent using in very small bursts)
 
bool m_is_addon
 
std::string m_kart_type
 Type of the kart (for the properties)
 
std::string m_wheel_filename [4]
 Filename of the wheel models. More...
 
float m_graphical_y_offset
 An additional Y offset added to the y position of the graphical chassis. More...
 
float m_wheel_base
 Wheel base of the kart. More...
 
float m_max_lean
 The maximum roll a kart graphics should show when driving in a fast curve. More...
 
float m_lean_speed
 The speed with which the roll (when leaning in a curve) changes (in radians/second). More...
 
std::string m_engine_sfx_type
 Engine sound effect. More...
 
float m_friction_slip
 
Vec3 m_gravity_center_shift
 Shift of center of gravity. More...
 
TerrainImpulseType m_terrain_impulse_type
 
float m_collision_terrain_impulse
 An additional impulse to push a kart away if it hits terrain.
 
float m_collision_impulse
 An additiojnal artificial impulse that pushes two karts in a side-side collision away from each other. More...
 
float m_collision_impulse_time
 How long the collision impulse should be applied. More...
 
InterpolationArray m_restitution
 Restitution depending on speed. More...
 

Static Private Attributes

static float UNDEFINED = -99.9f
 Dummy value to detect unset properties. More...
 

Detailed Description

This class stores the properties of a kart.

This includes size, name, identifier, physical properties etc. It is atm also the base class for STKConfig, which stores the default values for all physics constants. Note that KartProperties is copied (when setting the default values from stk_config.

Member Enumeration Documentation

◆ TerrainImpulseType

STK can add an impulse to push karts away from the track in case of a kart-track collision.

This can be done in two ways: either apply the impulse in the direction of the normal, or towards the driveline. The later works nice as long as the kart is driving on the main track, but can work very bad if the kart is drivling off-track (and a wrong driveline is selected).

Constructor & Destructor Documentation

◆ KartProperties()

KartProperties::KartProperties ( const std::string &  filename = "")

The constructor initialises all values with invalid values.

It can later then be checked (for STKConfig) that all values are indeed defined. Otherwise the defaults are taken from STKConfig (and since they are all defined, it is guaranteed that each kart has well defined physics values).

◆ ~KartProperties()

KartProperties::~KartProperties ( )

Destructor, dereferences the kart model.

Member Function Documentation

◆ checkAllSet()

void KartProperties::checkAllSet ( const std::string &  filename)

Checks if all necessary physics values are indeed defines.

This helps finding bugs early, e.g. missing default in stk_config.dat file.

Parameters
filenameFile from which the data was read (only used to print meaningful error messages).

◆ copyForPlayer()

void KartProperties::copyForPlayer ( const KartProperties source,
HandicapLevel  h = HANDICAP_NONE 
)

Copies this KartProperties to another one.

Important: if you add any pointers to kart_properties, the data structure they are pointing to need to be copied here explicitely! The AIProperties won't get cloned here as they don't differ for each player. To clone this object for another kart use the copyFrom method.

Parameters
sourceThe source kart properties from which to copy this objects' values.

◆ copyFrom()

void KartProperties::copyFrom ( const KartProperties source)

Copies this KartProperties to another one.

Important: if you add any pointers to kart_properties, the data structure they are pointing to need to be copied here explicitely!

Parameters
sourceThe source kart properties from which to copy this objects' values.

◆ getAbsoluteIconFile()

const std::string& KartProperties::getAbsoluteIconFile ( ) const
inline

Returns the absolute path of the icon file of this kart.

◆ getAccelerationEfficiency()

float KartProperties::getAccelerationEfficiency ( ) const

This function returns a weighted average of engine power divide by mass for use as a single number summing-up acceleration's efficiency, e.g.

for use in kart selection.

◆ getAIPropertiesForDifficulty()

const AIProperties* KartProperties::getAIPropertiesForDifficulty ( ) const
inline

Returns a pointer to the AI properties.

◆ getAllData()

void KartProperties::getAllData ( const XMLNode root)

Actually reads in the data from the xml file.

Parameters
rootRoot of the xml tree.

◆ getBevelFactor()

const Vec3& KartProperties::getBevelFactor ( ) const
inline

Returns the bevel factor (!=0 indicates to use a bevelled box).

◆ getCharacteristic()

const AbstractCharacteristic * KartProperties::getCharacteristic ( ) const

Returns the characteristics for this kart.

◆ getCollisionImpulse()

float KartProperties::getCollisionImpulse ( ) const
inline

Returns the (artificial) collision impulse this kart will apply to another kart in case of a non-frontal collision.

◆ getCollisionImpulseTime()

float KartProperties::getCollisionImpulseTime ( ) const
inline

Returns how long the collision impulse should be applied.

◆ getCollisionTerrainImpulse()

float KartProperties::getCollisionTerrainImpulse ( ) const
inline

Returns an artificial impulse to push karts away from the terrain it hits.

◆ getColor()

const video::SColor& KartProperties::getColor ( ) const
inline

Returns the dot color to use for this kart in the race gui.

◆ getCombinedCharacteristic()

const AbstractCharacteristic * KartProperties::getCombinedCharacteristic ( ) const

Returns the characteristics for this kart combined with the base characteristic.

This value isn't used for the race, because the difficulty is missing, but it can be used e.g. for the kart stats widget.

◆ getCustomSfxId()

const int KartProperties::getCustomSfxId ( SFXManager::CustomSFX  type) const
inline

Returns custom sound effects for this kart.

◆ getEngineSfxType()

const std::string& KartProperties::getEngineSfxType ( ) const
inline

Returns the engine type (used to change sfx depending on kart size).

◆ getFrictionSlip()

float KartProperties::getFrictionSlip ( ) const
inline

Returns friction slip.

◆ getGravityCenterShift()

const Vec3& KartProperties::getGravityCenterShift ( ) const
inline

Returns a shift of the center of mass (lowering the center of mass makes the karts more stable.

◆ getGroups()

const std::vector<std::string>& KartProperties::getGroups ( ) const
inline

Returns the list of groups this kart belongs to.

◆ getHandicapAsString()

std::string KartProperties::getHandicapAsString ( HandicapLevel  h)
static

Returns the string representation of a handicap level.

◆ getIconMaterial()

Material* KartProperties::getIconMaterial ( ) const
inline

Returns the material for the kart icons.

◆ getIdent()

const std::string& KartProperties::getIdent ( ) const
inline

Returns the internal identifier of this kart.

◆ getKartDir()

const std::string& KartProperties::getKartDir ( ) const
inline

Returns the full path where the files for this kart are stored.

◆ getKartModelCopy()

KartModel * KartProperties::getKartModelCopy ( std::shared_ptr< RenderInfo ri = nullptr) const

Returns a pointer to the KartModel object.

Parameters
krtThe KartRenderType, like default, red, blue or transparent. see the RenderInfo include for details

◆ getKartType()

const std::string& KartProperties::getKartType ( ) const
inline

Returns the type of this kart.

◆ getMasterKartModel()

const KartModel& KartProperties::getMasterKartModel ( ) const
inline

Returns a pointer to the main KartModel object.

This copy should not be modified, not attachModel be called on it.

◆ getMinimapIcon()

video::ITexture* KartProperties::getMinimapIcon ( ) const
inline

Returns the texture to use in the minimap, or NULL if not defined.

◆ getName()

core::stringw KartProperties::getName ( ) const

Returns the name of this kart.

◆ getPhysicalWheelPosition()

const float KartProperties::getPhysicalWheelPosition ( ) const
inline

Returns position of the physical wheel is a weighted average of the two ends of the beveled shape.

This determines the weight: 0 = a the widest end, 1 = at the narrowest, front end. If the value is <0, the old physics position is picked, which placed the raycast wheels outside of the chassis, but gives more stable physics.

◆ getRestitution()

float KartProperties::getRestitution ( float  speed) const
inline

Returns the restitution factor for this kart.

◆ getShadowMaterial()

Material* KartProperties::getShadowMaterial ( ) const
inline

Returns the shadow texture to use.

◆ getShape()

int KartProperties::getShape ( ) const
inline

Returns the number of edges for the polygon used to draw the dot of this kart on the mini map of the race gui.

◆ getTerrainImpulseType()

TerrainImpulseType KartProperties::getTerrainImpulseType ( ) const
inline

Returns what kind of impulse STK should use in case of a kart-track collision.

◆ getVersion()

int KartProperties::getVersion ( ) const
inline

Returns the version of the .kart file.

◆ getWheelBase()

float KartProperties::getWheelBase ( ) const
inline

Returns the wheel base (distance front to rear axis).

◆ load()

void KartProperties::load ( const std::string &  filename,
const std::string &  node 
)
private

Loads the kart properties from a file.

Parameters
filenameFilename to load.
nodeName of the xml node to load the data from

◆ setHatMeshName()

void KartProperties::setHatMeshName ( const std::string &  hat_name)

Sets the name of a mesh to be used for this kart.

Parameters
hat_nameName of the mesh.

Member Data Documentation

◆ m_ai_properties

std::shared_ptr<AIProperties> KartProperties::m_ai_properties[RaceManager::DIFFICULTY_COUNT]
private

AI Properties for this kart, as a separate object in order to reduce dependencies (and therefore compile time) when changing any AI property.

There is one separate object for each difficulty.

◆ m_bevel_factor

Vec3 KartProperties::m_bevel_factor
private

If != 0 a bevelled box shape is used by using a point cloud as a collision shape.

◆ m_cached_characteristic

std::shared_ptr<CachedCharacteristic> KartProperties::m_cached_characteristic
private

The cached combined characteristics.

◆ m_characteristic

std::shared_ptr<AbstractCharacteristic> KartProperties::m_characteristic
private

The physical, item, etc.

characteristics of this kart that are loaded from the xml file.

◆ m_collision_impulse

float KartProperties::m_collision_impulse
private

An additiojnal artificial impulse that pushes two karts in a side-side collision away from each other.

◆ m_collision_impulse_time

float KartProperties::m_collision_impulse_time
private

How long the collision impulse should be applied.

◆ m_color

video::SColor KartProperties::m_color
private

Color the represents the kart in the status bar and on the track-view.

◆ m_combined_characteristic

std::shared_ptr<CombinedCharacteristic> KartProperties::m_combined_characteristic
private

The base characteristics combined with the characteristics of this kart.

◆ m_engine_sfx_type

std::string KartProperties::m_engine_sfx_type
private

Engine sound effect.

◆ m_graphical_y_offset

float KartProperties::m_graphical_y_offset
private

An additional Y offset added to the y position of the graphical chassis.

Useful for karts that don't have enough space for suspension compression.

◆ m_gravity_center_shift

Vec3 KartProperties::m_gravity_center_shift
private

Shift of center of gravity.

◆ m_groups

std::vector<std::string> KartProperties::m_groups
private

List of all groups the kart belongs to.

◆ m_icon_file

std::string KartProperties::m_icon_file
private

Filename of icon that represents the kart in the statusbar and the character select screen.

◆ m_icon_material

Material* KartProperties::m_icon_material
private

The absolute path of the icon texture to use.

◆ m_ident

std::string KartProperties::m_ident
private

The computer readable-name of the kart driver.

◆ m_kart_model

std::shared_ptr<KartModel> KartProperties::m_kart_model
mutableprivate

The kart model and wheels.

It is mutable since the wheels of the KartModel can rotate and turn, and animations are played, but otherwise the kart_properties object is const.

◆ m_lean_speed

float KartProperties::m_lean_speed
private

The speed with which the roll (when leaning in a curve) changes (in radians/second).

◆ m_max_lean

float KartProperties::m_max_lean
private

The maximum roll a kart graphics should show when driving in a fast curve.

This is read in as degrees, but stored in radians.

◆ m_minimap_icon

video::ITexture* KartProperties::m_minimap_icon
private

The texture to use in the minimap.

If not defined, a simple color dot is used.

◆ m_minimap_icon_file

std::string KartProperties::m_minimap_icon_file
private

The minimap icon file.

◆ m_name

std::string KartProperties::m_name
private

The human readable Name of the kart driver.

◆ m_physical_wheel_position

float KartProperties::m_physical_wheel_position
private

The position of the physical wheel is a weighted average of the two ends of the beveled shape.

This determines the weight: 0 = a the widest end, 1 = at the narrowest front end. If the value is < 0, the old physics settings are used which places the raycast wheels outside of the chassis - but result in a more stable physics behaviour (which is therefore atm still the default).

◆ m_restitution

InterpolationArray KartProperties::m_restitution
private

Restitution depending on speed.

◆ m_root

std::string KartProperties::m_root
private

Base directory for this kart.

◆ m_shadow_file

std::string KartProperties::m_shadow_file
private

Filename of the image file that contains the shadow for this kart.

◆ m_shadow_material

Material* KartProperties::m_shadow_material
private

The texture with the shadow.

◆ m_shadow_scale

float KartProperties::m_shadow_scale
private

Scale of the shadow plane for this kart.

◆ m_shadow_x_offset

float KartProperties::m_shadow_x_offset
private

X offset of the shadow plane for this kart.

◆ m_shadow_z_offset

float KartProperties::m_shadow_z_offset
private

Z offset of the shadow plane for this kart.

◆ m_shape

int KartProperties::m_shape
private

Number of vertices in polygon when drawing the dot on the mini map.

◆ m_version

int KartProperties::m_version
private

Version of the .kart file.

◆ m_wheel_base

float KartProperties::m_wheel_base
private

Wheel base of the kart.

◆ m_wheel_filename

std::string KartProperties::m_wheel_filename[4]
private

Filename of the wheel models.

◆ UNDEFINED

float KartProperties::UNDEFINED = -99.9f
staticprivate

Dummy value to detect unset properties.


The documentation for this class was generated from the following files: