Moderators: Sascha Willems, walaber
vector3df actualPos = p_irrSceneNode->getAbsolutePosition();
matrix4 mat;
if(p_moveObjFB != 0)
{
p_irrSceneNode->setPosition(vector3df(actualPos.X, actualPos.Y, actualPos.Z + (p_moveObjFB * 0.05)) );
mat.setRotationDegrees( p_irrSceneNode->getRotation() );
mat.setTranslation( p_irrSceneNode->getPosition() );
NewtonBodySetMatrix(p_body, mat.pointer())
p_irrSceneNode->setPosition(HapticPos);
matrix4 mat;
mat.setTranslation( getPosition() );
// mat.setRotationDegrees( getRotation() );
NewtonBodySetMatrix(p_body, mat.pointer());
telmopereira wrote:Well, i try out many things, and changing the place where i update the physics, it seems that stops to crash the program.
The problem now is that the collisions are not well made. I try out to control a box with the keyboard and another one with the haptic device. With the keyboard everything is fine, but not with the box that i control with haptic device. The only difference between the code is that with a box controlled by the keyboard i do in the update function something like:
Users browsing this forum: No registered users and 5 guests