how to get objects to point up

arcwf
Posts: 7
Joined: Fri Mar 20, 2009 3:26 am

Re: how to get objects to point up

Post by arcwf »

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
arcwf
Posts: 7
Joined: Fri Mar 20, 2009 3:26 am

Re: how to get objects to point up

Post by arcwf »

The best solution that works for us right now is described in this post:
http://www.bulletphysics.org/Bullet/php ... 494#p19494
chutoi
Posts: 16
Joined: Fri Aug 10, 2012 4:21 pm

Re: how to get objects to point up

Post by chutoi »

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.