SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
DynamicJointCtrl.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JGeometry.hpp"
5
6class LiveActor;
7
9public:
11
12 void update();
13 void startCtrl(s32);
14 void endCtrl(s32);
15
16 f32 _0;
17 u32 _4;
18 s32 _8;
19 s32 _C;
20};
21
23 f32 mGravity; // _0
24 f32 mFriction; // _4
25 f32 mAccelRatetoBckPos; // _8
26 f32 mBendMaxDegree; // _C
27 const char* mJointName; // _10
28};
29
31
33public:
34 DynamicJointCtrl(LiveActor *, const char *, const DynamicJointCtrlParam *);
35
36 void init();
37 void update();
38 void reset();
39 void setCallBackFunction();
40
41 LiveActor* mActor; // _0
42 const char* mName; // _4
43 u32 _8;
44 DynamicJointCtrlNode** mCtrlNodes; // _C
45 DynamicJointCtrlParam* mParams; // _10
46 JointCtrlRate* mControlRate; // _14
47};
48
50public:
51 DynamicJointCtrlNode(const DynamicJointCtrl *, MtxPtr, f32);
52
53 void update(LiveActor *, const DynamicJointCtrlNode *);
54 void reset();
55
56 f32 _0;
57 TVec3f _4;
58 TVec3f _10;
59 TVec3f _1C;
60 MtxPtr _28;
61 u32 _2C;
62 u32 _30;
63 DynamicJointCtrl* mParentControl; // _34
64};
65
67public:
69
70 void update();
71 void setCallBackFunction();
72 void startCtrl(const char *, s32);
73 void endCtrl(const char *, s32);
74 void reset();
75 DynamicJointCtrl* findJointCtrl(const char *);
76
77 LiveActor* mActor; // _0
78 s32 _4;
79 DynamicJointCtrl** mControls; // _8
80};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24