So I have a basic hinge constraint in my current game project to make a door.
It's created like this:
Code: Select all
btHingeConstraint* hingeDoor;
hingeDoor = new btHingeConstraint(*level.btBody,*hinge1.btBody,btVector3(20.0f,5.0f,-5.0f),btVector3(-5.0f,0.0f,.25f),btVector3(0,1,0),btVector3(0,1,0));
_physics->getWorld()->addConstraint(hingeDoor,true);
I've been trying to figure what's going on, and I'm totally stumped.