Code: Select all
World->removeCollisionObject(Body, false);
Node->setPosition(position);
IRigidBox *Body = World->addRigidBody(Shape);
Body is the body affecting Node.
Node is the pointer to an ISceneNode.
World is obviously a pointer to IrrBulletWorld.
Yea, I know this is an incredibally simple snippet, but this caused me quite a few problems not knowing about the removeCollisionObject command. So I figured this could be useful to other people that didn't know it was there either. It also works with setRotation and setScale.