Frustrum

From Crumbled World Wiki

SphereExampleCode

Constructor

function description
Frustrum(Vec3 cameraPos, Vec3 corner1, Vec3 corner2, Vec3 corner3, Vec3 corner4)

Functions

return function description
bool sphereInFrustum(Sphere aSphere)
float sphereInFrustumDist(Sphere aSphere)
int boxInFrustrum(Box aBox) return 0 if outside, 1 if partly inside and 2 if completely inside.
bool pointInFrustum(Vec3 point)