What is Global CFM and Global ERP

MutantPixel
Posts: 2
Joined: Tue Mar 29, 2011 11:21 pm

What is Global CFM and Global ERP

Post by MutantPixel »

Hi all,
I'm trying to understand what Global CFM and Global ERP are, does anyone have even some simple definitions of what these are and/or what they do? I figured out that CFM stands for 'Constraint Force Mixing', but that doesn't help much. Thanks!
-james
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: What is Global CFM and Global ERP

Post by Erwin Coumans »

they are tweaking values for the constraint solver.

The word 'Global' means that those values apply to all constraints, rather then local values that only apply to specific constraints. The CFM, constraint force mixing, adds some small value to the main diagonal of the constraint matrix, to avoid degenerate matrices. The ERP, error reduction parameter, is a rate of how fast the error is reduced.

You might want to read up more on this in Erin Catto's recent GDC presentation.

Thanks,
Erwin
MutantPixel
Posts: 2
Joined: Tue Mar 29, 2011 11:21 pm

Re: What is Global CFM and Global ERP

Post by MutantPixel »

Thank you very much, that helps a lot.
--james