hi,
I was doing some test on PrismaticJoint and I figured out that the API provides only those two motorforce accessors ( on googlecode, svn version 23 ) :
GetMotorForce() actually returns m_motorImpulse which allows to know the currently applied force, but there is no way to know the value of m_maxMotorForce..
FYI, I was trying to do something like this :
Is this a design choice or a bug ?
If it's a bug I can post it on google and provide the corresponding patch (as I've already added the GetMaxMotorForce function..)
cheers,
chris
I was doing some test on PrismaticJoint and I figured out that the API provides only those two motorforce accessors ( on googlecode, svn version 23 ) :
Code:
void SetMaxMotorForce(float32 force);
float32 GetMotorForce() const;
float32 GetMotorForce() const;
GetMotorForce() actually returns m_motorImpulse which allows to know the currently applied force, but there is no way to know the value of m_maxMotorForce..
FYI, I was trying to do something like this :
Code:
joint.SetMaxMotorforce( joint.GetMaxMotorForce() + ratio * dt );
Is this a design choice or a bug ?
If it's a bug I can post it on google and provide the corresponding patch (as I've already added the GetMaxMotorForce function..)
cheers,
chris