coastline 0.0.4
Loading...
Searching...
No Matches
vehicledeform.h
Go to the documentation of this file.
1#ifndef COASTLINE_VEHICLE_DEFORM_H
2#define COASTLINE_VEHICLE_DEFORM_H
3
4#include "common/vecmath.h"
5#include "common/vehiclefwd.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#if TGR_BOSS_RALLY
18#if TGR_PLATFORM == TGR_PLATFORM_SDL
19s16 *GetSdlDentLimit(void);
20#define g_wVehicleDeformMaxDent (*GetSdlDentLimit())
21#else
22extern s16 g_wVehicleDeformMaxDent;
23#endif
24#endif
25
37void DeformVehicleMeshByImpact(Vehicle *vehicle, Vec3f *direction, s16 amount);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* COASTLINE_VEHICLE_DEFORM_H */
A point or direction in space.
Definition vecmath.h:17
A vehicle.
Definition vehicle.h:143
short s16
Definition ultratypes.h:24
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...
void DeformVehicleMeshByImpact(Vehicle *vehicle, Vec3f *direction, s16 amount)
Dent the model on the side of an impact unless the side is already dented deeply enough.