SuperTuxKart
Loading...
Searching...
No Matches
Functions
Collaboration diagram for Kart:

Functions

void Kart::squash (int idKart, float time)
 Squashes the specified kart, for the specified time.
 
void Kart::teleport (int idKart, SimpleVec3 *position)
 Teleports the kart to the specified Vec3 location.
 
void Kart::teleportExact (int idKart, SimpleVec3 *position)
 Teleports the kart to the specified Vec3 location.
 
SimpleVec3 Kart::getLocation (int idKart)
 Attempts to project kart to the given 2D location, to the position with height 0, at a 45 degree angle.
 
void Kart::setVelocity (int idKart, SimpleVec3 *position)
 Sets the kart's velocity to the specified value.
 
SimpleVec3 Kart::getVelocity (int idKart)
 Gets the kart's velocity.
 
float Kart::getMaxSpeed (int idKart)
 Gets the maximum speed (velocity) a kart can reach.
 
void Kart::changeKart (int idKart, std::string *new_id)
 Gets the maximum speed (velocity) a kart can reach.
 

Detailed Description

Function Documentation

◆ getLocation()

SimpleVec3 Kart::getLocation ( int  idKart)

Attempts to project kart to the given 2D location, to the position with height 0, at a 45 degree angle.

Returns the location of the corresponding kart.