Fix collide issue on PSP

This commit is contained in:
2026-07-19 14:51:57 -05:00
parent 13a435e9c1
commit de0ff2e263
3 changed files with 47 additions and 52 deletions
+7 -2
View File
@@ -17,8 +17,13 @@
#include "display/color.h"
#include "time/time.h"
#define OVERWORLD_SCENE_CAMERA_ORBIT_RADIUS 8.0f
#define OVERWORLD_SCENE_CAMERA_ORBIT_HEIGHT 5.0f
// Radius must stay well outside the floor's footprint (a 20x20 plane has a
// corner-to-center distance of 10*sqrt(2) =~ 14.1) -- orbiting inside that
// puts parts of the floor's own geometry near/behind the camera's view
// direction, which the PSP's legacy GU pipeline can't clip properly and
// drops the whole triangle instead of clipping it.
#define OVERWORLD_SCENE_CAMERA_ORBIT_RADIUS 18.0f
#define OVERWORLD_SCENE_CAMERA_ORBIT_HEIGHT 10.0f
#define OVERWORLD_SCENE_CAMERA_ORBIT_SPEED 0.5f
static overworldcameraorbit_t OVERWORLD_SCENE_CAMERA_ORBIT;