Skip to content

Commit 13ca730

Browse files
committed
nikos request
1 parent be990e4 commit 13ca730

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

include/gte.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef CTR_GTE_H
2+
#define CTR_GTE_H
3+
4+
// where is this included
5+
// that's not ifndef guarded?
6+
#ifndef REBUILD_PC
7+
8+
#include <math.h>
9+
#include <psn00bsdk/include/inline_c.h>
10+
11+
void RotateVector(SVec3 * out, const SVec3 * in);
12+
void MulMatrixVec(Vec3 * out, const Matrix * m, const SVec3 * in);
13+
14+
#endif
15+
16+
#endif

include/namespace_Vehicle.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <ctr_math.h>
1+
#include <math.h>
22

33
enum Characters
44
{
@@ -37,12 +37,12 @@ enum KartState
3737
enum PhysType
3838
{
3939
// MetaPhys[0]
40-
GRAVITY=0,
40+
GRAVITY=0,
4141
// Driver offset
4242
GRAVITY_OFFSET = 0x416,
4343

4444
// MetaPhys[1]
45-
JUMP=1,
45+
JUMP=1,
4646
// Driver offset
4747
JUMP_OFFSET = 0x418,
4848

@@ -82,25 +82,25 @@ enum PhysType
8282
DRIFT_FRICTION_OFFSET = 0x426,
8383

8484
// MetaPhys[9]
85-
ACCELERATION_NO_RESERVES=9,
85+
ACCELERATION_NO_RESERVES=9,
8686
// Driver offset
8787
ACCEL_NO_RESERVES_OFFSET = 0x428,
8888

8989
// MetaPhys[A]
90-
ACCELERATION_WITH_RESERVES=0xA,
90+
ACCELERATION_WITH_RESERVES=0xA,
9191
// Driver offset
9292
ACCEL_WITH_RESERVES_OFFSET=0x42A,
9393

9494
// MetaPhys[B]
95-
CLASS_SPEED = 0xB,
95+
CLASS_SPEED = 0xB,
9696
// Driver offset
9797
CLASS_SPEED_OFFSET = 0x42C,
9898

9999
// MetaPhys[C]
100100
SPEEDOMETER_UNK42E = 0xC,
101101
// Driver offset
102102
SPEEDOMETER_UNK42E_OFFSET = 0x42E,
103-
103+
104104
// MetaPhys[D]
105105
MAX_SPEED_SINGLE_TURBO = 0xD,
106106
// Driver offset
@@ -135,7 +135,7 @@ enum PhysType
135135
REVERSE_TURNING_SPEED = 0x13,
136136
// Driver offset
137137
REVERSE_TURNING_SPEED_OFFSET = 0x43B,
138-
138+
139139
// MetaPhys[14]
140140
TURN_UNK43C = 0x14,
141141
// Driver offset
@@ -828,7 +828,7 @@ struct Driver
828828
// 0x36e
829829
// Seems to control the speedometer needle to show base current speed
830830
// Altought the needle is also controlled a little bit by other variables that are not constants
831-
short unk36E;
831+
short unk36E;
832832

833833
// 0x370
834834
short AxisAngle3_normalVec[3];

0 commit comments

Comments
 (0)