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

@@ -79,10 +79,8 @@ Entity :: struct {
animator: Animator; @DontSerialize
// Physics
body : Physics_Body;
collider : Collider;
physx_static: *PhysX.PxRigidStatic;
physx_dynamic: *PhysX.PxRigidDynamic;
physx_handle: PhysX_Handle;
velocity: Vector3;
// End physics
@@ -208,10 +206,6 @@ entity_should_be_rendered :: (e: *Entity) -> bool {
destroy_entity :: (e: *Entity) {
call_correct_deinit_entity(e);
if e.collider.mesh.vertices.data != null {
array_free(e.collider.mesh.vertices);
}
for 0..e.renderable.num_nodes-1 {
node_data := e.renderable.nodes[it];