1#ifndef COASTLINE_VEHICLERESET_H
2#define COASTLINE_VEHICLERESET_H
28#if TGR_PLATFORM == TGR_PLATFORM_N64
43#if TGR_PLATFORM == TGR_PLATFORM_N64
A vehicle.
Definition vehicle.h:143
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25
The vehicles of a race, the cars they are, and their place on the track.
void SetVehiclePosition(Vehicle *vehicle, f32 x, f32 y, f32 z)
Set the position in the frame, spray origin, and rigid-body integration states.
void RotateVehicleByEuler(Vehicle *vehicle, f32 yaw, f32 pitch, f32 roll)
Apply yaw, pitch, and roll rotations in radians to the integration orientations.
void SetVehicleVelocity(Vehicle *vehicle, f32 x, f32 y, f32 z)
Set velocity in the rigid-body integration states and the recorded placement.
void ClearVehicleDamageState(Vehicle *vehicle)
Clear dents and the dent variation.
void InitVehicleColorAndPhysics(Vehicle *vehicle)
Apply release-specific model paint and initialise physics.
void ResetVehicleState(Vehicle *vehicle)
Reset vehicle transforms and apply the selected car's physics.
void SetVehicleFrameMatrix(Vehicle *vehicle, f32(*m)[4])
Set the frame matrix and copy its orientation to the integration states.
void SetVehicleTurnRate(Vehicle *vehicle, f32 x, f32 y, f32 z)
Set angular velocity in the rigid-body integration states.
void InitVehicleOrientationFromAngle(Vehicle *vehicle, f32 angle)
Initialise the vehicle and integration orientations from a heading in radians.
void SetVehicleModelSlot(Vehicle *vehicle, s32 slot)
Bind a model slot and initialise its colour and physics.
void InitVehiclePhysics(Vehicle *vehicle)
Initialise the body, wheels, and force chains for the selected model.
void SetupVehicleForRaceStart(Vehicle *vehicle)
Place the vehicle on the starting grid and initialise race state.
void RespawnVehicle(Vehicle *vehicle)
Return an overturned or fallen vehicle to its current route point.