CmonGirl
08-10-2010 14:23:20
Hi guys. I have a problem.
I wanna a box joint at the vehicle. That:

I joint box to vehicle. This OK.
But dont move convexbody
Someone help. Why did not move my box??? How can i solve?
I wanna a box joint at the vehicle. That:
I joint box to vehicle. This OK.
NxOgre::FixedJoint* fj = mPhysicsScene->createFixedJoint((NxOgre::RigidBody*)convexBody,(NxOgre::RigidBody*)mVehicle->mActor);
But dont move convexbody

if(mKeyboard->isKeyDown(OIS::KC_N))
{
std::cout << "PRESSED" << std::endl;
convexBody->addForceAtLocalPos(NxOgre::Vec3(10,0,0),NxOgre::Vec3(0,0,0));
}
Someone help. Why did not move my box??? How can i solve?