Physics improvements

This commit is contained in:
2025-03-29 00:18:27 +01:00
parent b6b1371af5
commit 7428ee7fed
3 changed files with 53 additions and 22 deletions

View File

@@ -384,9 +384,7 @@ parse_fbx_node :: (model: *Model, fbx_node: *ufbx_node) {
// }
//}
array_add(*node.meshes, parray_add(*engine.renderer.meshes, mesh));struct {
path: string;
}
array_add(*node.meshes, parray_add(*engine.renderer.meshes, mesh));
array_add(*node.material_defaults, model.materials[mesh_mat.material.typed_id]); // @Incomplete
}
}
@@ -673,7 +671,7 @@ load_fbx :: (path: string) -> Model_Handle, bool {
get_or_load_model :: (path: string) -> Model_Handle {
for * engine.renderer.model_lib {
if it.path == path {
return xx (it_index + 1);
return cast(Model_Handle)(it_index + 1);
}
}