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