Hinge-2 Constraint possible?

basiror
Posts: 4
Joined: Thu Aug 07, 2008 8:30 am

Hinge-2 Constraint possible?

Post by basiror »

Hello,
I just wonder whether it is possible to model a hinge-2 constraint as shown by the link underneath with a 6dof constraint.

http://www.ode.org/ode-latest-userguide.html#sec_7_3_5

If so how would I do this?
I have to pass two transforms, using a identity rotation matrix and an offset.
const btTransform &frameInA, const btTransform &frameInB


And now use
void setAngularLowerLimit (const btVector3 &angularLower)
void setAngularUpperLimit (const btVector3 &angularUpper)
to limit the rotation of the vertical axis to +-45° ?

Just as a side note, I want to model the tires of a car / tank with rigid bodies instead of raycasting them.

thx for your help in advance
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Hinge-2 Constraint possible?

Post by Erwin Coumans »

This constraint is not implemented in Bullet at the moment, but we can add it to the todo list.

If you need it urgently, you could try to port the constraint from ODE to Bullet and make a contribution.
Thanks,
Erwin
basiror
Posts: 4
Joined: Thu Aug 07, 2008 8:30 am

Re: Hinge-2 Constraint possible?

Post by basiror »

Hi
It would be really nice if you put on the TODO list, I did examine the ODE code yesterday and I don t think I know enough about the topic to be able to implement it.