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

@@ -98,7 +98,7 @@ void chAttackTutorial_setState(Actor * this, s32 arg1){
}
break;
}//L803874A8
func_80328A84(this, arg1);
subaddie_set_state(this, arg1);
}
int func_803874C4(void){

View File

@@ -8,7 +8,7 @@
f32 func_80309724(f32*);
void func_802C4218(s32, f32, f32, f32);
void func_803252D0(f32, s32);
void func_80328B8C(Actor *, s32, f32, s32);
void subaddie_set_state_with_direction(Actor *, s32, f32, s32);
//typedefs
typedef struct ch_vegatable{
@@ -208,7 +208,7 @@ void func_80387C28(Actor * this){
func_803252D0(1.5f, 7);
actor_collisionOff(this);
if(local->unkC != 3){
func_80328B8C(this, 3, 0.0f, 1);
subaddie_set_state_with_direction(this, 3, 0.0f, 1);
actor_playAnimationOnce(this);
}
else{
@@ -337,7 +337,7 @@ void func_80388080(Actor *this){
this->unk1C_y += (local->unkC == 3)? 270.0 : 85.0;
}
//L80388384
func_80328A84(this, 4);
subaddie_set_state(this, 4);
}
break;
case 4: //L8038839C
@@ -352,7 +352,7 @@ void func_80388080(Actor *this){
func_80387F00(this);
actor_collisionOn(this);
func_80328A84(this, 2);
subaddie_set_state(this, 2);
}//L80388494
if(!this->unk138_23){

View File

@@ -8,7 +8,7 @@ void func_8028E668(f32*, f32, f32, f32);
void func_80328FB0(Actor *, f32);
void func_8030DA44(u8);
void timed_exitStaticCamera(f32);
void func_80328B8C(Actor *, s32, f32, s32);
void subaddie_set_state_with_direction(Actor *, s32, f32, s32);
//static types
typedef struct sm_2900_struct{
@@ -126,7 +126,7 @@ void func_80388FA0(Actor *this, s32 arg1){
other = subaddie_getLinkedActor(this);
myOther = this->unk100;
if(myOther && other && myOther->unk14_20 == 0xB8)
func_80328B8C(other, 3, 0.0001f, 1);
subaddie_set_state_with_direction(other, 3, 0.0001f, 1);
actor_playAnimationOnce(this);
this->unk44_31 = func_8030D90C();
sfxsource_setSfxId(this->unk44_31, 0x3f9);
@@ -150,7 +150,7 @@ void func_80388FA0(Actor *this, s32 arg1){
other = subaddie_getLinkedActor(this);
myOther = this->unk100;
if(myOther && other && myOther->unk14_20 == 0xB8)
func_80328B8C(other, 2, 0.0001f, 1);
subaddie_set_state_with_direction(other, 2, 0.0001f, 1);
animctrl_setSmoothTransition(this->animctrl, 1);
actor_playAnimationOnce(this);
this->unk44_31 = func_8030D90C();
@@ -162,7 +162,7 @@ void func_80388FA0(Actor *this, s32 arg1){
func_8028F94C(2, this->position);
break;
}
func_80328B8C(this, arg1, 0.0001f, 1);
subaddie_set_state_with_direction(this, arg1, 0.0001f, 1);
}
void func_80389214(ActorMarker *marker, enum asset_e text_id, s32 arg2){

View File

@@ -57,7 +57,7 @@ void func_8038A3B0(Actor *this){
actor_collisionOff(this);
if(this->state == 2 && levelSpecificFlags_get(sp24 + 0x35)){
func_80328A84(this, 1);
subaddie_set_state(this, 1);
actor_playAnimationOnce(this);
}

View File

@@ -52,7 +52,7 @@ void func_8038A4DC(Actor *this, s32 arg1){
mapSpecificFlags_set(5, 1);
break;
}//L8038A5BC
func_80328A84(this, arg1);
subaddie_set_state(this, arg1);
}
void SM_func_8038A5D8(Actor *this){

View File

@@ -145,7 +145,7 @@ void SM_func_80386EF4(Actor *this) {
} else {
this->unk100 = NULL;
}
func_80328A84(this, 2);
subaddie_set_state(this, 2);
}
}
}

View File

@@ -25,7 +25,7 @@ void SM_func_80386FE0(Actor *this){
case 1://L80387064
if(this->unk38_31++ == 2){
this->unk10_12 = actorArray_actorCount(ACTOR_16F_QUARRIE);
func_80328A84(this, 2);
subaddie_set_state(this, 2);
}
break;
case 2://L803870C4