Parented ISceneNodeAnimatorCollisionResponse

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
Arclamp
Posts: 71
Joined: Thu Oct 10, 2013 7:45 pm

Parented ISceneNodeAnimatorCollisionResponse

Post by Arclamp »

I've attached a ISceneNodeAnimatorCollisionResponse to a bone and it stops receiving collisions...

Before I attach it, if I move it using gravity it collides with a box and I get feedback, but once it gets attached it collides with nothing:

Code: Select all

 
irr::scene::IBoneSceneNode* foot =  node_ninja->getJointNode("Joint22");
foot->addChild(node_collide_foot_r);
 
I've tried changing the size of the ellipse to massive scales since parenting inherits scale, etc...

Is this right for updating it each cycle?

Code: Select all

 
node_collide_foot_r->animateJoints(true);
node_collide_foot_r->updateAbsolutePosition();
 
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Parented ISceneNodeAnimatorCollisionResponse

Post by CuteAlien »

Which Irrlicht version are you using? There had been a bug which is only fixed in svn trunk when the animation nodes had an additional transformation from the animation (not just the normal animation, but an additional matrix per joint - some animations can use that). That one got ignored previously in collision updates.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Arclamp
Posts: 71
Joined: Thu Oct 10, 2013 7:45 pm

Re: Parented ISceneNodeAnimatorCollisionResponse

Post by Arclamp »

Hi, thanks for speedy reply, you're right, I'm still on 1.8.3, downloaded, report back soon... Thought I was following the IrrLogic and that something must be wrong, all too simple as usual...
Post Reply