Add function to detach body from simulation