Here's my code to create it:
Code: Select all
vector3df radius = node->getBoundingBox().MaxEdge - node->getBoundingBox().getCenter();
ISceneNodeAnimatorCollisionResponse* animator = smgr->createCollisionResponseAnimator(selector, node, radius);
node->addAnimator(animator);
animator->drop();Thanks!