deadcast2 / UltraEd

A WIP level editor/game engine for the Nintendo 64.
MIT License
132 stars 13 forks source link

Mesh Collision / Navmesh Support / Rotatable Box Meshes #137

Open EGAMatsu opened 2 years ago

EGAMatsu commented 2 years ago

From the viewer, it seems rotating a Box Mesh just changes its size, which makes level design impossible, I assume it uses a AABB system though.

deadcast2 commented 2 years ago

Yeah UltraEd is currently using AABB for efficiency. OOBB is very computationally expensive so I avoided implementing that. I will need some sort of way to add collision to imported level geometry like walls and floors. May have to use triangle based collision detection but I'll need to introduce space partioning for sure to not choke the CPU.

Byterset commented 2 years ago

Best case the colliders should not only be rotatable but can be completely manipulated on their own (rotate, resize, move). Basically like a child of the object. I believe an additional capsule collider type would also be beneficial