mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Fix RaycastFloor flags (#1328)
* fix raycast floor flags * format.sh * Name flags * Rename RaycastFloor functions, clean up caller code, document z_bg_spot15_rrbox * change comment to prevent format wrap * change to "if BGCHECK_GROUND_CHECK_ON is set" * roman suggestions
This commit is contained in:
parent
fe8d5988b9
commit
327a813b37
42 changed files with 497 additions and 451 deletions
|
@ -151,14 +151,14 @@ void ObjBean_InitDynaPoly(ObjBean* this, PlayState* play, CollisionHeader* colli
|
|||
}
|
||||
|
||||
void ObjBean_FindFloor(ObjBean* this, PlayState* play) {
|
||||
Vec3f vec;
|
||||
s32 sp20;
|
||||
Vec3f checkPos;
|
||||
s32 bgId;
|
||||
|
||||
vec.x = this->dyna.actor.world.pos.x;
|
||||
vec.y = this->dyna.actor.world.pos.y + 29.999998f;
|
||||
vec.z = this->dyna.actor.world.pos.z;
|
||||
checkPos.x = this->dyna.actor.world.pos.x;
|
||||
checkPos.y = this->dyna.actor.world.pos.y + 29.999998f;
|
||||
checkPos.z = this->dyna.actor.world.pos.z;
|
||||
this->dyna.actor.floorHeight =
|
||||
BgCheck_EntityRaycastFloor4(&play->colCtx, &this->dyna.actor.floorPoly, &sp20, &this->dyna.actor, &vec);
|
||||
BgCheck_EntityRaycastDown4(&play->colCtx, &this->dyna.actor.floorPoly, &bgId, &this->dyna.actor, &checkPos);
|
||||
}
|
||||
|
||||
void func_80B8EBC8(ObjBean* this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue