Global CFM / ERP setting

Post Reply
User avatar
Tomator
Posts: 9
Joined: Mon Oct 18, 2010 8:53 am

Global CFM / ERP setting

Post by Tomator »

Is there a global value of CFM & ERP? I have found methods to override global erp & cfm values in constraints, but I'd rather like to set the global ones. The problem is I can't find where to set them.
User avatar
Tomator
Posts: 9
Joined: Mon Oct 18, 2010 8:53 am

Re: Global CFM / ERP setting

Post by Tomator »

Found :)

Code: Select all

  btContactSolverInfo solverInfo = theDynamicsWorld->getSolverInfo();
  solverInfo.m_erp = 0.8;
  solverInfo.m_globalCfm = 0.1;
monkeyman
Posts: 22
Joined: Sat Nov 26, 2011 5:41 pm

Re: Global CFM / ERP setting

Post by monkeyman »

Just for reference in case anybody searches and finds this:

you obviously have to do

btContactSolverInfo &solverInfo = theDynamicsWorld->getSolverInfo();

and not just solverInfo like in the posted example, or you'll just change a local copy! :)
sarahah
Posts: 1
Joined: Thu Oct 12, 2017 10:45 am
Contact:

Re: Global CFM / ERP setting

Post by sarahah »

I am facing problem in my firefox while running the ERP software. It seems it is a java conflict. Whats the solution?
___________
Web Development Company | School Management System
Post Reply