coastline 0.0.4
Loading...
Searching...
No Matches
vehiclereset.h
Go to the documentation of this file.
1#ifndef COASTLINE_VEHICLERESET_H
2#define COASTLINE_VEHICLERESET_H
3
4#include "common/vehicle.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
28#if TGR_PLATFORM == TGR_PLATFORM_N64
35void SetVehicleModelSlot(Vehicle *vehicle, s32 slot);
36#endif
43#if TGR_PLATFORM == TGR_PLATFORM_N64
50#endif
56void RespawnVehicle(Vehicle *vehicle);
65void SetVehicleVelocity(Vehicle *vehicle, f32 x, f32 y, f32 z);
74void SetVehiclePosition(Vehicle *vehicle, f32 x, f32 y, f32 z);
88void SetVehicleFrameMatrix(Vehicle *vehicle, f32 (*m)[4]);
97void RotateVehicleByEuler(Vehicle *vehicle, f32 yaw, f32 pitch, f32 roll);
106void SetVehicleTurnRate(Vehicle *vehicle, f32 x, f32 y, f32 z);
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* COASTLINE_VEHICLERESET_H */
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.