-
Notifications
You must be signed in to change notification settings - Fork 0
/
vive_car.hpp
51 lines (33 loc) · 1.06 KB
/
vive_car.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef VIVE_CAR_H
#define VIVE_CAR_H
#include "scene/3d/physics_body.h"
#include "scene/3d/position_3d.h"
#include "car_stats/controls.hpp"
#include "car_stats/transmission.hpp"
#include "car_stats/torque.hpp"
#include "vive_wheel.hpp"
//#A class representing a car in VitaVehicle.
class ViVeCar : public RigidBody {
GDCLASS(ViVeCar, RigidBody);
protected:
static void _bind_methods();
void _notification(int what);
public:
void scene_tree_ready(); //_ready
void simulation_process(); // _physics_process()
void debug_process(); //_process()
virtual String get_configuration_warning() const; //for editor warnings, eg. about no child wheels
/** Custom performance monitors aren't in Godot 3 (yet?)
void setup_performance_monitors(); //_enter_tree
void remove_performance_monitors(); //_exit_tree
*/
double get_turbo();
void update_wheel_arrays();
void fix_engine_stall();
void controls(float analog_axis = 0.0);
void transmission();
void drivetrain();
void aerodynamics();
double multivariate(double external_rpm = 0.0);
};
#endif // VIVE_CAR_H