Add FramePerfection's Better Wall Collision with rounded corners
This commit is contained in:
1 parent
97f6fa6959
commit
2927db262c
16 files changed
+369
-220
No files matched your search
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "engine/extended_bounds.h"
|
||||
|
||||
|
||||
#define CELL_HEIGHT_LIMIT 20000
|
||||
#define FLOOR_LOWER_LIMIT -11000
|
||||
#define FLOOR_LOWER_LIMIT_MISC (FLOOR_LOWER_LIMIT + 1000)
|
||||
@@ -22,11 +21,12 @@ struct WallCollisionData
|
||||
/*0x10*/ f32 radius;
|
||||
/*0x14*/ s16 unused;
|
||||
/*0x16*/ s16 numWalls;
|
||||
/*0x18*/ struct Surface *walls[4];
|
||||
/*0x18*/ struct Surface *walls[MAX_REFEREMCED_WALLS];
|
||||
};
|
||||
|
||||
s32 f32_find_wall_collision(f32 *xPtr, f32 *yPtr, f32 *zPtr, f32 offsetY, f32 radius);
|
||||
s32 find_wall_collisions(struct WallCollisionData *colData);
|
||||
void resolve_and_return_wall_collisions(Vec3f pos, f32 offset, f32 radius, struct WallCollisionData *collisionData);
|
||||
f32 find_ceil(f32 posX, f32 posY, f32 posZ, struct Surface **pceil);
|
||||
f32 find_floor_height(f32 x, f32 y, f32 z);
|
||||
f32 find_floor(f32 xPos, f32 yPos, f32 zPos, struct Surface **pfloor);
|
||||
|
||||
Reference in new issue
Block a user