SuperTuxKart
Public Member Functions | Public Attributes | Private Member Functions | List of all members
PhysicalObject::Settings Class Reference

Public Member Functions

 Settings (BodyTypes type, float radius, float mass)
 Creates a physical Settings object with the given type, radius and mass.
 
 Settings (const XMLNode &xml_node)
 Reads the physical settings values from a given XML node.
 

Public Attributes

std::string m_id
 ID of the object. More...
 
float m_mass
 Mass of the object. More...
 
float m_radius
 Radius of the object, to overwrite the graphical dimension. More...
 
float m_height
 Height of an object, to overwrite the graphical dimension. More...
 
PhysicalObject::BodyTypes m_body_type
 Shape of the object. More...
 
float m_restitution
 Restitution of the physical object. More...
 
float m_friction
 Friction for this object. More...
 
Vec3 m_linear_factor
 Bullet's linear factor. More...
 
Vec3 m_angular_factor
 Bullet angular factor. More...
 
float m_linear_damping
 Bullet's linear damping factor. More...
 
float m_angular_damping
 Bullet's angular damping factor. More...
 
bool m_crash_reset
 Trigger a reset in karts touching it?
 
bool m_knock_kart
 Knock the kart around. More...
 
bool m_flatten_kart
 Flatten the kart when this object is touched. More...
 
bool m_reset_when_too_low
 Reset the object when it falls under the track (useful e.g. More...
 
float m_reset_height
 If the item is below that height, it is reset (when m_reset_when_too_low is true). More...
 
std::string m_on_kart_collision
 If non-empty, the name of the scripting function to call when a kart collides with this object.
 
std::string m_on_item_collision
 If non-empty, the name of the scripting function to call when a (flyable) item collides with this object.
 

Private Member Functions

void init ()
 Initialises a Settings object.
 

Member Data Documentation

◆ m_angular_damping

float PhysicalObject::Settings::m_angular_damping

Bullet's angular damping factor.

◆ m_angular_factor

Vec3 PhysicalObject::Settings::m_angular_factor

Bullet angular factor.

◆ m_body_type

PhysicalObject::BodyTypes PhysicalObject::Settings::m_body_type

Shape of the object.

◆ m_flatten_kart

bool PhysicalObject::Settings::m_flatten_kart

Flatten the kart when this object is touched.

◆ m_friction

float PhysicalObject::Settings::m_friction

Friction for this object.

◆ m_height

float PhysicalObject::Settings::m_height

Height of an object, to overwrite the graphical dimension.

◆ m_id

std::string PhysicalObject::Settings::m_id

ID of the object.

◆ m_knock_kart

bool PhysicalObject::Settings::m_knock_kart

Knock the kart around.

◆ m_linear_damping

float PhysicalObject::Settings::m_linear_damping

Bullet's linear damping factor.

◆ m_linear_factor

Vec3 PhysicalObject::Settings::m_linear_factor

Bullet's linear factor.

◆ m_mass

float PhysicalObject::Settings::m_mass

Mass of the object.

◆ m_radius

float PhysicalObject::Settings::m_radius

Radius of the object, to overwrite the graphical dimension.

◆ m_reset_height

float PhysicalObject::Settings::m_reset_height

If the item is below that height, it is reset (when m_reset_when_too_low is true).

◆ m_reset_when_too_low

bool PhysicalObject::Settings::m_reset_when_too_low

Reset the object when it falls under the track (useful e.g.

for a boulder rolling down a hill).

◆ m_restitution

float PhysicalObject::Settings::m_restitution

Restitution of the physical object.


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