how to get objects to point up
-
- Posts: 7
- Joined: Fri Mar 20, 2009 3:26 am
Re: how to get objects to point up
In regards to the approach of using a hinge constraint with its angular only option, please read this post: http://www.bulletphysics.org/Bullet/php ... 429#p19429
-
- Posts: 7
- Joined: Fri Mar 20, 2009 3:26 am
Re: how to get objects to point up
The best solution that works for us right now is described in this post:
http://www.bulletphysics.org/Bullet/php ... 494#p19494
http://www.bulletphysics.org/Bullet/php ... 494#p19494
-
- Posts: 16
- Joined: Fri Aug 10, 2012 4:21 pm
Re: how to get objects to point up
With version 2.80 the virtual function btUprightConstraint::solveConstraintObsolete() seems to have changed signature.
It used to be:
void btUprightConstraint::solveConstraintObsolete(btSolverBody& bodyA, btSolverBody& bodyB, btScalar timeStep)
Change to:
void btUprightConstraint::solveConstraintObsolete( btRigidBody& bodyA, btRigidBody& bodyB, btScalar timeStep )
I'm testing to see if it works now.
edit: There are some additional pure virtual functions that have to be implemented as well.
It seems to work once that's done.
It used to be:
void btUprightConstraint::solveConstraintObsolete(btSolverBody& bodyA, btSolverBody& bodyB, btScalar timeStep)
Change to:
void btUprightConstraint::solveConstraintObsolete( btRigidBody& bodyA, btRigidBody& bodyB, btScalar timeStep )
I'm testing to see if it works now.
edit: There are some additional pure virtual functions that have to be implemented as well.
It seems to work once that's done.