Debug ISceneNodeAnimator

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Debug ISceneNodeAnimator

Post by lesPaul456 »

I'm having a problem where, when I add a ISceneNodeAnimatorCollisionResponse to a scene node, the object appears to float.

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();
Is there anyway to draw the ellipse created by this animator so that I can see what's going on? Does anyone have any idea about what is going on?

Thanks!
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

UPDATE: I know what the problem is, and I know how to fix it. But is there a way I can visualize the collision?
Post Reply