Original Post
🔒 Locked
ode for 2d simulation
Advertisement
I got Plane2d working on ODE 0.6, once I fixed the compile errors it worked fine ;) (Took about an hour).
Plane2d isn't really that much harder to use them any other joint, it is just a pain to "install" as you have to integrate it directly with the source code.
The biggest thing was I hacked in the dVector3 stuff:
It is really messy but I didn't know a better way to convert the Identity matrix to a dReal3 :P. If anyone knows of a way then that would be great ;).
Plane2d isn't really that much harder to use them any other joint, it is just a pain to "install" as you have to integrate it directly with the source code.
The biggest thing was I hacked in the dVector3 stuff:
dVector3 mVec; if (joint->row_motor_x > 0) { mVec[0]=Midentity[0][0]; mVec[1]=Midentity[0][1]; mVec[2]=Midentity[0][2]; joint->motor_x.addLimot(joint, info, joint->row_motor_x, mVec, 0); } if (joint->row_motor_y > 0) { mVec[0]=Midentity[1][0]; mVec[1]=Midentity[1][1]; mVec[2]=Midentity[1][2]; joint->motor_y.addLimot(joint, info, joint->row_motor_y, mVec, 0); } if (joint->row_motor_angle > 0) { mVec[0]=Midentity[2][0]; mVec[1]=Midentity[2][1]; mVec[2]=Midentity[2][2]; joint->motor_angle.addLimot (joint, info, joint->row_motor_angle, mVec, 1); }It is really messy but I didn't know a better way to convert the Identity matrix to a dReal3 :P. If anyone knows of a way then that would be great ;).
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement