SuperTuxKart
Loading...
Searching...
No Matches
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.
 
float m_mass
 Mass of the object.
 
float m_radius
 Radius of the object, to overwrite the graphical dimension.
 
float m_height
 Height of an object, to overwrite the graphical dimension.
 
PhysicalObject::BodyTypes m_body_type
 Shape of the object.
 
float m_restitution
 Restitution of the physical object.
 
float m_friction
 Friction for this object.
 
Vec3 m_linear_factor
 Bullet's linear factor.
 
Vec3 m_angular_factor
 Bullet angular factor.
 
float m_linear_damping
 Bullet's linear damping factor.
 
float m_angular_damping
 Bullet's angular damping factor.
 
bool m_crash_reset
 Trigger a reset in karts touching it?
 
bool m_knock_kart
 Knock the kart around.
 
bool m_flatten_kart
 Flatten the kart when this object is touched.
 
bool m_reset_when_too_low
 Reset the object when it falls under the track (useful e.g.
 
float m_reset_height
 If the item is below that height, it is reset (when m_reset_when_too_low is true).
 
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_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).


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