added funtion to test if body is in simulation