+1
Mixing C++ and C interface feels not well.
C interface for everything also allows you to change internals and users won't even notice mostly.
Moderators: Sascha Willems, walaber
dVector grav = dVector(0.0f, 0.0f, -9.8f, 0.0f); Downwards on Z-axis
float mass = 2500.0f;
// create the coordinate system
dMatrix chassisMatrix;
chassisMatrix.m_front = dVector(1.0f, 0.0f, 0.0f, 0.0f);// vehicle direction of travel
chassisMatrix.m_up = dVector(0.0f, 0.0f, -1.0f, 0.0f);// downward vehicle direction
chassisMatrix.m_right = chassisMatrix.m_front * chassisMatrix.m_up;
chassisMatrix.m_posit = dVector(0.0f, 0.0f, 0.0f, 1.0f);
chassisMatrix.m_front = dVector (0.0f, 1.0f, 0.0f, 0.0f); // vehicle direction of travel
chassisMatrix.m_up = dVector (0.0f, 0.0f, 1.0f, 0.0f);// downward vehicle direction
chassisMatrix.m_right = chassisMatrix.m_front * chassisMatrix.m_up; // side direction (the plane of the wheels)
chassisMatrix.m_posit = dVector (0.0f, 0.0f, 0.0f, 1.0f);
Users browsing this forum: No registered users and 7 guests