The difference is that user can set (i.e. customize) "mass", "center of mass" and "inertia" (if involved) of body A and B in constraint perspective.
For example ,
- This is what I guess how the official Bullet constraint work:-
- - Light body (A) will be pulled/pushed more than heavy body (B).
If A has lower mass and B has higher mass,
but I customized in the constraint that A has very high mass, the effect from the constraint will be :-
- - A is pulled very little compared to B.
(Sorry if it sound confusing. In conclusion, I just want to create a new type of constraint.)
- Do I have to modify Bullet code?
- Which files contains the constraint solver that read RigidBody's mass?
In btGeneric6DofSpring2Constraint.cpp, there are a lot of functions that read RigidBody's mass.
Can I just copy btGeneric6DofSpring2Constraint to a new class,
- - then in the new class, I will modify every mass/centerOfMass-variable reading
- then the new type of constraint will work?