i have a problem with createCollisionResponse animator.
it works cool, collisioning, and eveything, it's inaccurate.
i mean, too high.
using that code:
Code: Select all
aabbox3d<f32> bbox = node->getTransformedBoundingBox();
ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(meta,node,
bbox.MaxEdge - bbox.getCenter(),vector3df(0,-1,0),vector3df(0,0,0),0.0005f);
http://dotdotdot.extra.hu/FTP/bboxerror.JPG
as you can see, my model is flying. but it isn't the problem of my model, as you can see, my bouning box is correct.
I'm using bsp map.
if i make that:
Code: Select all
aabbox3d<f32> bbox = node->getTransformedBoundingBox();
ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(meta,node,
bbox.MaxEdge - bbox.getCenter(),vector3df(0,-1,0),vector3df(0,-bbox.MaxEdge.Y/2,0),0.0005f);
what's the problem?