ADDED: new API to set the simulation state of a body
BUGFIX: removed warnings of depreacted API

IMPROVED: code format