PhysX work

This commit is contained in:
2025-07-11 01:39:46 +02:00
parent 7e354b0417
commit d5a21cb3ee
7 changed files with 169 additions and 570 deletions

View File

@@ -7,11 +7,13 @@ Mesh_Entity :: struct {
}
init_entity :: (e: *Mesh_Entity) {
log_error("Missing collision on Mesh Entities\n");
assert(false);
if e.model_path.count > 0 {
load_model_into_entity(e, get_or_load_model(e.model_path));
e.flags |= .COLLISION | .STATIC;
e.collider.type = .MESH;
e.collider.bake_mode = .FULL_MESH;
//e.flags |= .COLLISION | .STATIC;
//e.collider.type = .MESH;
//e.collider.bake_mode = .FULL_MESH;
}
}