Custom constraints

atomic_cheese
Posts: 2
Joined: Thu May 13, 2010 4:59 am

Custom constraints

Post by atomic_cheese »

Does Bullet support the implementation of custom constraints? I want to make a special constraint that constrains two objects together, like a fixate, but also allows a custom transform between them. Is there built-in support for this, or can I write my own?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Custom constraints

Post by Erwin Coumans »

Yes, you can implement custom constraints in Bullet.

In your case it might be better to setup the programmable btGeneric6DofConstraint. See Bullet/Demos/ConstraintDemo for examples.
Thanks,
Erwin
atomic_cheese
Posts: 2
Joined: Thu May 13, 2010 4:59 am

Re: Custom constraints

Post by atomic_cheese »

How do the frameInA and frameInB parameters work? I think that I'm supplying incorrect values and that's making the constraint more like a fixate than what I want.