hi all, its me again
how can i update a rigids body shape??
right now i create a rigid body with a shape as one of the input parameters as usual. Keep the hkpshape alive in a pointer
my problem is when i try to update that shape. I do all the update to my shape pointer. Then to make the changes available for the rigid body i do a "rigid_body->SetShape(shape)". shape its a pointer to the same shape rigid body was created from and it works, buuuutttt i get a very nice memory leak
then i tried shape->removeReference() after the SetShape call, but now the shape is gone and i have no collisions
i guess there is an easy method to make the shape updates available for the rigid body without memory leaks