clear

fun clear()(source)

Removes every body and every joint, attachment and grab that holds them. Slots start from 0 again.