documentation: core2/ba/physics

This commit is contained in:
Banjo Kazooie
2024-06-16 22:36:36 -05:00
parent 8fe5c3b4d1
commit 092de6aae3
208 changed files with 2342 additions and 2163 deletions

View File

@@ -24,7 +24,7 @@ ActorInfo chLoggo = {
void __chLoggo_flush(ActorMarker* marker) {
Actor* sp1C = marker_getActor(marker);
func_8028F918(2);
func_80328B8C(sp1C, 2, 0.01, 1);
subaddie_set_state_with_direction(sp1C, 2, 0.01, 1);
actor_playAnimationOnce(sp1C);
sp1C->unk60 = 3.2f;
}
@@ -67,7 +67,7 @@ void chLoggo_update(Actor *this){
this->marker->propPtr->unk8_3 = TRUE;
actor_collisionOn(this);
marker_setCollisionScripts(this->marker, __chLoggo_collide, NULL, NULL);
func_80328B8C(this, 1, 0.01f, 1);
subaddie_set_state_with_direction(this, 1, 0.01f, 1);
actor_loopAnimation(this);
this->unk60 = 0.0f;
if(!fileProgressFlag_get(FILEPROG_8A_EXITED_LOGGO) && levelSpecificFlags_get(0x33)){

View File

@@ -191,7 +191,7 @@ f32 MMM_func_80388430(Actor *this, s32 arg1, s32 arg2, f32 arg3) {
this->unk1C[1] = 11.0f;
break;
case 3:
func_80328A84(this, 5);
subaddie_set_state(this, 5);
break;
}
func_8030E878(SFX_82_METAL_BREAK, randf2(0.93f, 1.07f), 0x7FF8, this->position, 100.0f, 900.0f);
@@ -290,7 +290,7 @@ void func_80388BDC(Actor *this) {
if (!this->unk16C_4) {
if (this->yaw != 0.0f) {
this->unk60 = 0.5f;
func_80328A84(this, 7);
subaddie_set_state(this, 7);
this->unk38_31 = 1;
this->yaw = 270.0f;
} else {
@@ -305,7 +305,7 @@ void func_80388BDC(Actor *this) {
this->yaw = 0.0f;
if(mapSpecificFlags_get(0)) {
func_802BAFE4(0x21);
func_80328A84(this, 6);
subaddie_set_state(this, 6);
func_80244BB0(0, 0x6A, 0x7FF8, 0.3f);
mapSpecificFlags_set(2, 0);
func_8025A6EC(COMUSIC_4_MMM_CLOCK_VERSION, -1);
@@ -316,7 +316,7 @@ void func_80388BDC(Actor *this) {
case 6:
func_80388B2C(this, - (((this->yaw == 0.0f) || (359.0 < this->yaw)) ? 0.023 : 1.09));
if ((this->yaw <= 270.0f) && (this->yaw > 260.0f)) {
func_80328A84(this, 7U);
subaddie_set_state(this, 7U);
this->yaw = 270.0f;
func_8030E540(0x7F);
func_80244C78(0);
@@ -339,14 +339,14 @@ void func_80388BDC(Actor *this) {
} else {
func_802BAFE4(0x23);
}
func_80328A84(this, 8);
subaddie_set_state(this, 8);
func_80244BB0(0, 0x6A, 0x7FF8, 0.3f);
}
break;
case 8:
func_80388B2C(this, 1.3f);
if ((this->yaw >= 0.0f) && (this->yaw < 10.0f)) {
func_80328A84(this, 1U);
subaddie_set_state(this, 1U);
this->yaw = 0.0f;
func_8030E540(SFX_7F_HEAVYDOOR_SLAM);
mapSpecificFlags_set(0, 0);

View File

@@ -75,7 +75,7 @@ void func_803893A4(Actor *this){
break;
case 2:
if(actor_animationIsAt(this, 0.999f)){
func_80328B8C(this, 1, 0.001f, 0);
subaddie_set_state_with_direction(this, 1, 0.001f, 0);
actor_playAnimationOnce(this);
this->unk38_31 = 2;
}
@@ -86,7 +86,7 @@ void func_803893A4(Actor *this){
void func_80389484(ActorMarker * marker, f32 anim_duration){
Actor *this = marker_getActor(marker);
func_80328B8C(this, 2, 0.001f, 1);
subaddie_set_state_with_direction(this, 2, 0.001f, 1);
actor_playAnimationOnce(this);
animctrl_setDuration(this->animctrl, anim_duration);
this->unk38_31 = 1;

View File

@@ -74,7 +74,7 @@ bool MMM_func_80387340(ActorMarker *marker){
if(actor->state == 2)
return FALSE;
func_80328A84(actor, 2);
subaddie_set_state(actor, 2);
animctrl_setPlaybackType(actor->animctrl, ANIMCTRL_ONCE);
sp1C = func_803871B0();
if(sp1C != 0){