PhysX work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user