GameDevTecnico / cubos

A still very barebones game engine focused on voxels and data-oriented programming
https://gamedevtecnico.github.io/cubos/
MIT License
82 stars 22 forks source link

Add Frustum to core::geom #1184

Open RiscadoA opened 2 months ago

RiscadoA commented 2 months ago

Problem

We need to define these math utilities for use in frustum culling, on the engine rendering side. It could also prove useful in other areas.

Solution

We should add a core::geom::Frustum, which can be created from a camera's projection matrix. It should provide intersection methods for boxes and spheres.