group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::MapLoadOptions Struct Reference

Load options. More...

#include <MapLoader.hpp>

Public Attributes

float scale = 1.0f
 Uniform scale applied to every vertex position (e.g. 39.37 for m → in).
std::string collisionCollection = "Collision"
 Name of the Blender collection (= Assimp parent node) whose children are collision geometry.
bool allMeshesAreCollision = false
 When true, every mesh in the file is treated as both visual and collision geometry.
bool addFloorPlane = false
 When true, an infinite floor plane is added at the lowest Y coordinate found across all collision geometry.

Detailed Description

Load options.

Configuration for map loading.

Member Data Documentation

◆ addFloorPlane

bool physics::MapLoadOptions::addFloorPlane = false

When true, an infinite floor plane is added at the lowest Y coordinate found across all collision geometry.

Prevents players from falling through the world even if the map mesh has tiny cracks.

◆ allMeshesAreCollision

bool physics::MapLoadOptions::allMeshesAreCollision = false

When true, every mesh in the file is treated as both visual and collision geometry.

The collisionCollection name is ignored, and meshes are preserved as authored triangle surfaces.

◆ collisionCollection

std::string physics::MapLoadOptions::collisionCollection = "Collision"

Name of the Blender collection (= Assimp parent node) whose children are collision geometry.

Matching is case-insensitive. Meshes under this node are extracted as collision geometry and are excluded from the visual model (unless allMeshesAreCollision is also set).

◆ scale

float physics::MapLoadOptions::scale = 1.0f

Uniform scale applied to every vertex position (e.g. 39.37 for m → in).


The documentation for this struct was generated from the following file: