diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2026-03-05 16:52:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-05 16:52:14 -0700 |
| commit | 376087be692801e8e2c7fd145fbfdfd720cdea16 (patch) | |
| tree | 27447311c1e5cd7a18dcee4157a218671eebb0ed /src/racing/collision.c | |
| parent | 000c47e6100770a634fa01a1457c28ca8e2b860e (diff) | |
Fix Thwomp Collision and Better Interp Tagging for Actors (#665)
* Update actors.c
* Update actors.c
* actor
* Fix bounding box
* More interp fix
* Update KoopaTroopaBeach.cpp
* Update Thwomp.cpp
* Update actors.c
* Update render.inc.c
* Update render.inc.c
Diffstat (limited to 'src/racing/collision.c')
| -rw-r--r-- | src/racing/collision.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/racing/collision.c b/src/racing/collision.c index 5e78b151f..76b639f86 100644 --- a/src/racing/collision.c +++ b/src/racing/collision.c @@ -1762,6 +1762,20 @@ void set_vtx_from_quadrangle(u32 line, s8 surfaceType, u16 sectionId) { add_collision_triangle(vtx1, vtx3, vtx4, surfaceType, sectionId); } +void add_vtx_from_quadrangle(Vtx* vert, size_t count) { + Vtx* ptr = vert; + for (size_t i = 0; i < count / 4; i++) { + //set_vtx_buffer((uintptr_t)ptr, 4, 0); + + D_8015F5A4 = 1; + add_collision_triangle(&ptr[0], &ptr[1], &ptr[2], SURFACE_DEFAULT, 0xFF); + add_collision_triangle(&ptr[1], &ptr[2], &ptr[3], SURFACE_DEFAULT, 0xFF); + D_8015F5A4 = 0; + + ptr++; + } +} + /** * Generates a list of pointers to track vtx. */ |
