|
group2 0.1.0
CSE 125 Group 2
|
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. | |
Load options.
Configuration for map loading.
| 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.
| 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.
| 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).
| float physics::MapLoadOptions::scale = 1.0f |
Uniform scale applied to every vertex position (e.g. 39.37 for m → in).