1#include "Game/LiveActor/DynamicJointCtrl.hpp"
2#include "Game/Util.hpp"
6JointCtrlRate::JointCtrlRate() {
16void JointCtrlRate::update() {
24 _0 = ((f32)(_4 - 1) / (f32)(_4 - 1));
36 if ((temp - 1) >= 0) {
37 _0 = ((f32)(_8 - (temp - 1) / _8));
47void JointCtrlRate::startCtrl(s32 val) {
58void JointCtrlRate::endCtrl(s32 val) {
69void DynamicJointCtrlKeeper::update() {
70 for (s32 i = 0; i < _4; i++) {
71 mControls[i]->update();
75void DynamicJointCtrlKeeper::setCallBackFunction() {
76 for (s32 i = 0; i < _4; i++) {
77 mControls[i]->setCallBackFunction();
81void DynamicJointCtrlKeeper::startCtrl(
const char *pName, s32 a2) {
82 findJointCtrl(pName)->mControlRate->startCtrl(a2);
85void DynamicJointCtrlKeeper::endCtrl(
const char *pName, s32 a2) {
86 findJointCtrl(pName)->mControlRate->endCtrl(a2);
89void DynamicJointCtrlKeeper::reset() {
90 for (s32 i = 0; i < _4; i++) {
91 mControls[i]->reset();
96 for (s32 i = 0; i < _4; i++) {
97 if (MR::isEqualString(mControls[i]->mName, pName)) {