Who can give some information about variables as....

Post Reply
ljb
Posts: 21
Joined: Fri Oct 14, 2011 6:18 am

Who can give some information about variables as....

Post by ljb »

I am a greenhand.My English is poor.I hope anyone can understand what I mean.
What does this variables mean inbtSolverConstraint.h file?There is no explanation.I cannot find any information.
m_rhs、m_cfm、m_relpos1CrossNormal、internalGetDeltaAngularVelocity、m_jacDiagABInv

:(
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: Who can give some information about variables as....

Post by drleviathan »

Here are my guesses:

m_rhs = right hand side (of some fundamental constraint equation probably. If you were to study the details of using Jacobians to solve constraints this might make more sense.)

m_cfm = ? (I couldn't find any clues on this one)

m_relpos1CrossNormal = vector cross product between the relative position of object 1 with some normal vector (of collision perhaps)

btSolverBody::internalGetDeltaAngularVelocity() = you can actually look this one up in the code. It just returns the angular velocity. The "internal" name is probably for specifying the API of the btSolverBody class -- derived classes can override and their own versions of the method will be called in the right places in the Solver implementations.

m_jacDiagABInv = inverse of the Jacobian matrix from object A to object B. The AB is probably used to remind the developer which frame the Jacobian is defined in. It either means local position is positionA - positionB (in which case objectB would be at the local origin) or it is the other way around.

There is more information to be had, however it is somewhat complex and you'll have to study how to solve constraints using Jacobians. Google is your friend in this matter.
ljb
Posts: 21
Joined: Fri Oct 14, 2011 6:18 am

Re: Who can give some information about variables as....

Post by ljb »

THX,I try to understand and test.
:) :) :) :) :) :) :)
Somebody can understand me!
Post Reply