*
* @param entity The entity to set the location of.
* @param newPos The new position of the entity.
*/
private static void setPhysicsLocation(EntityRef entity, Vector3f newPos) {
PhysicsEngine physics = CoreRegistry.get(PhysicsEngine.class);
CharacterCollider collider = physics.getCharacterCollider(entity);
collider.setLocation(newPos);
}