SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
FaceJointCtrl.cpp
1#include "Game/LiveActor/FaceJointCtrl.hpp"
2#include "Game/LiveActor/DynamicJointCtrl.hpp"
3#include "Game/Util/JointController.hpp"
4
5FaceJointCtrl::FaceJointCtrl(LiveActor *pActor) {
6 mHostActor = pActor;
7 _4 = 45.0f;
8 _8 = 0.0f;
9 _C = 0.0f;
10 _10 = 1.0f;
11 _14 = 0.0f;
12 _18 = 0.0f;
13 _1C = 1.0f;
14 mJointController = 0;
15 mJointCtrlRate = new JointCtrlRate();
16}
17
18void FaceJointCtrl::startCtrl(s32 val) {
19 if (mJointController) {
20 mJointCtrlRate->startCtrl(val);
21 update();
22 }
23}
24
25void FaceJointCtrl::endCtrl(s32 val) {
26 if (mJointController) {
27 mJointCtrlRate->endCtrl(val);
28 update();
29 }
30}
31
32void FaceJointCtrl::update() {
33 if (!mJointController) {
34 return;
35 }
36
37 mJointCtrlRate->update();
38}
39
40void FaceJointCtrl::setCallBackFunction() {
41 if (!mJointController) {
42 return;
43 }
44
45 mJointController->registerCallBack();
46}
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24