Joint between 2 objects made by btcompoundShape !

momoreda
Posts: 25
Joined: Mon Oct 08, 2007 2:09 pm
Location: France

Joint between 2 objects made by btcompoundShape !

Post by momoreda »

Hi !

I am about to construct a model. I understood how the function btcompoundshape work, the problem is that I am unable to create a joint between two objects made by btCompoundshape. (I can not specify the junction)
i don't know if it's possible but i hope !


thanks for your Help

M
Hamstray
Posts: 15
Joined: Thu Jan 11, 2007 7:45 pm

Re: Joint between 2 objects made by btcompoundShape !

Post by Hamstray »

objects in a compound shape are fixed together statically. you can not specify any degrees of freedom.
momoreda
Posts: 25
Joined: Mon Oct 08, 2007 2:09 pm
Location: France

Re: Joint between 2 objects made by btcompoundShape !

Post by momoreda »

Hi !

thanks for replay

I mean by this 2 compoundShape ! so i want to create joint between then.

M
Hamstray
Posts: 15
Joined: Thu Jan 11, 2007 7:45 pm

Re: Joint between 2 objects made by btcompoundShape !

Post by Hamstray »

oh ok, what you need to do is add a btTypedConstraint,
see src/BulletDynamics/ConstraintSolver/ to find out what types of constraints are available,
also check out some of the sample code such as the constraint demo