-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSCarProperties.h
55 lines (43 loc) · 983 Bytes
/
SCarProperties.h
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
52
53
54
55
#ifndef SCAR_PROPERTIES_H_INCL
#define SCAR_PROPERTIES_H_INCL
#include "CPhysicsObject.h"
#include "CMesh.h"
struct SCarProperties
{
SCarProperties()
{
FrontWheelDrive = true;
EngineForce = 9.f;
BrakeForce = 0.2f;
Mass = 0.5f;
SuspensionStiffness = 30.f;
SuspensionDamping = 20.f;
SuspensionCompression = 0.f;
FrictionSlip = 3.5f;
RollInfluence = 0.1f;
WheelPositionFrontLeft = vec3(-2.7f, 0.f, -4.5f);
WheelPositionBackRight = vec3(2.7f, 0.f, 4.2f);
WheelRestLength = 0.3f;
WheelRadius = 1.4f;
BumperCamera = vec3(0, 0, -5);
MaxSteer = 0.15f;
SteerSpeed = 0.8f;
}
vec3 WheelPositionFrontLeft;
vec3 WheelPositionBackRight;
float WheelRestLength;
float WheelRadius;
vec3 BumperCamera;
float MaxSteer;
float SteerSpeed;
bool FrontWheelDrive;
float EngineForce;
float BrakeForce;
float Mass;
float SuspensionStiffness;
float SuspensionDamping;
float SuspensionCompression;
float FrictionSlip;
float RollInfluence;
};
#endif