Hi,
I play around with the physics in CS, I get my spring works (not exact but almost). Now I want my wheels to rotate, how do I do that?
// wheeljoints for wheel 1
csRef<iJoint> joint5 = dynSys->CreateJoint ();
joint5->Attach (rb2, rb2s);
joint5->SetMinimumDistance (csVector3 (0, 0, 0));
joint5->SetMaximumDistance (csVector3 (0, 0, 0));
joint5->SetTransConstraints (true, true, true);
joint5->SetMinimumAngle (csVector3 (0, 0, 0));
joint5->SetMaximumAngle (csVector3 (0, 0, 0));
joint5->SetRotConstraints (true, true, true);
If I set "SetRotConstraints" my wheel will go off and get weird connections to the springs. What am I doing wrong here?
/TurboGlider





