Moderators: Sascha Willems, walaber
Julio Jerez wrote:Hey Joe, you have mastered the art of making Joints now better than I.
class dgFlags
{
public:
union {
dgInt8 m_flags;
struct {
dgInt32 m_isMotor : 1;
dgInt32 m_applyCorrection : 1;
};
};
};
class dgFlags
{
public:
union {
dgInt8 m_flags;
struct {
dgInt32 m_isMotor : 1;
dgInt32 m_applyCorrection : 1;
};
};
};
void dgBilateralConstraint::SetMotorAcceleration (dgInt32 index, dgFloat32 acceleration, dgContraintDescritor& desc)
{
m_rowIsMotor[index] = -1;
m_motorAcceleration[index] = acceleration;
desc.m_flags[index].m_isMotor = -1;
// huge mistake here, .m_applyCorrectionis sterring motro mode to zero again
desc.m_flags[index].m_applyCorrection = 0;
desc.m_jointAccel[index] = acceleration;
}
Sweenie wrote:The basic car and super car acts very weird now though. It's like there is no lateral tire friction.
Could the changes you made for the tank be the cause?
Users browsing this forum: No registered users and 2 guests