I am currently trying to implement collision detection and gravity on a 3rd person model. I have managed to get things to work mostly, but my characters feet are sunk slightly into the floor.
I reviewed some old posts and think i have found a discrepancy between old versions and new of irrlicht:
CreateCollisionResponseAnimator used to have an optional 6th param which was a vector3df, but it now only appears to be a float. This used to be used to signify the offset to be used for aligning the collision response to a surface.
Can someone please give some assistance as to what sort of value could go in now to help my poor model find her feet?
I have tried a -ve value, and my model disappeared (I guess she was pulled through the floor and fell into a bottomless pit), and +ve values which seemed to have no impace whatsoever:
Code: Select all
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(selector, playerNode, elipsoidSize, core::vector3df(0,-100,0),core::vector3df(0,0,0),200.0f);
Many thanks,
Gezmo