This code, mesh fits ground.This appearance is correct.
Code: Select all
ISceneNodeAnimator* anim =Scene->createCollisionResponseAnimator(
selector, meshNode, vector3df(0.5f,0.8f,0.5f), vector3df(0,-.5,0), vector3df(0.0f,-0.8f,0.0f));
Code: Select all
ISceneNodeAnimator* anim =Scene->createCollisionResponseAnimator(
selector, meshNode, vector3df(0.5f,0.8f,0.5f), vector3df(0,-.5,0), vector3df(0.0f,0.8f,0.0f));
I think that these results are opposite.
Upvector of my scene is (x,y,z) = (0,1,0).
The height of meshNode is 1.6
and the center(mesh origin) exists in the foot(Y=0).
so, I think ellipseoid center have to move to Y:+0.8.
it is not -0.8!!! because UpVector of this scene is (x,y,z)=(0, +1, 0).
I can't understand the sign is opposite.
How do you think this problem?