Best constraints for ragdoll

Bbilz
Posts: 26
Joined: Wed Feb 27, 2008 9:55 am

Best constraints for ragdoll

Post by Bbilz »

hi,

Are there any advantages to using btHingedConstraints and btConeTwistConstraint to construct a ragdoll, rather than using plain btGenericD6Constraints?

Thanks!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Best constraints for ragdoll

Post by Erwin Coumans »

As you noticed, there are demos to create ragdolls for both cases.

The btHingedConstraints and btConeTwistConstraint is tailored to do the job, so if it suits your ragdoll construction it is recommended. Those constraints are better defined (less error-prone to setup) and easier to optimize in the future.

The btGenericD6Constraint is more general purpose.
Hope this helps,
Erwin