Removed non #if'ed physics code.

This commit is contained in:
2025-07-30 14:00:04 +02:00
parent 0d35175aed
commit dc18060729
4 changed files with 45 additions and 28 deletions

View File

@@ -9,8 +9,10 @@ Mesh_Entity :: struct {
init_entity :: (e: *Mesh_Entity) {
if e.model_path.count > 0 {
load_model_into_entity(e, get_or_load_model(e.model_path));
e.flags |= .PHYSICS;
e.physics.type = .TRIANGLE_MESH;
#if PHYSICS {
e.flags |= .PHYSICS;
e.physics.type = .TRIANGLE_MESH;
}
//e.physics.box.half_extent = .{0.5,0.5,0.5};
}
}