stoneCold.net
07-12-2006 22:06:01
I'm currently working on implementing Newton (OgreNewt) into my Game Framework, and now I'm that far that I need a custom joint type for it....as the title of the topic already states, a Hinge Joint with a configurable spring, like the rear axle of a car. That's even exactly I'd need it for. I already created two classes (derived from OgreNewt::CustomJoint) ... "RearAxle" and "FrontAxle" representing the two axle types a usual car features:
RearAxle -----> Hinge Joint + Spring
FrontAxle -----> Universal Joint + Spring
... but I can't really figure out what to do in the submitConstraint() method as the example that comes with OgreNewt is quite sparely. Is there any? documentation or any examples I can see to understand the couple of functions (localToGlobal, addLinearRow, addAngularRow, ...) better?
[edit]: #exclude "OgreNewt::Vehicle" <--- I need a joint solution
[edit2]: found -->this<-- and will get my head into it, though I would appreciate any comments, thoughts, (pseudo) code snippets, etc. a lot
many thanks
RearAxle -----> Hinge Joint + Spring
FrontAxle -----> Universal Joint + Spring
... but I can't really figure out what to do in the submitConstraint() method as the example that comes with OgreNewt is quite sparely. Is there any? documentation or any examples I can see to understand the couple of functions (localToGlobal, addLinearRow, addAngularRow, ...) better?
[edit]: #exclude "OgreNewt::Vehicle" <--- I need a joint solution
[edit2]: found -->this<-- and will get my head into it, though I would appreciate any comments, thoughts, (pseudo) code snippets, etc. a lot
many thanks