group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MapLoader.cpp File Reference

Assimp-based collision extraction from map GLB files. More...

#include "MapLoader.hpp"
#include "TriMeshCollision.hpp"
#include <SDL3/SDL_log.h>
#include <VHACD.h>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <string>
#include <vector>
Include dependency graph for MapLoader.cpp:

Namespaces

namespace  physics
 Pure physics math — no ECS types, no registry.

Functions

bool physics::loadMapCollision (const std::string &path, MapCollisionData &out, const MapLoadOptions &opts={})
 API.
bool physics::loadPropCollision (const std::string &path, MapCollisionData &out, glm::vec3 position, float scale, bool decomposeNonConvex=false)
 Load collision for a standalone prop GLB and append to existing collision data.

Detailed Description

Assimp-based collision extraction from map GLB files.

Auto-detects the best collision primitive for each mesh: sphere → cylinder → axis-aligned box → convex brush (fallback).