Cylinidrical Joint

bigbob85

18-05-2009 12:13:08

Hey,
Im wondering if anyone can help me with my joints in nxogre.

My game involves driving a forklift. I've managed to create the wheels (see here if you can help me attach wheel meshes to my forklift) and have it driving around with collisions and stuff, and now im onto creating the forks and mast (may not be called a mast, but Its what I call the big up down part of it).

the 3 seperate meshes are loaded, body, mast and forks. Mast is a fixed joint to the body (I wanted this to be pivitable at the bottom to simulate it tilting back.. but I couldnt get that to work properly), and forks should be jointed somehow to allow up/down movement.

I found this joint type, and tried to implement it.

It works fine, except for the fact its quite loose. It can move away from the forklift if i break suddenly (see pic). I also see problems in the future with load on the forks. I would like to have them as a fixed joints which I can manualy move, but I cant get this to work with NxOgre. Trying to get/set anchor position causes it to crash.

Does anyone have any ideas what I should try do instead? Or tips on using joints.

betajaen

18-05-2009 12:59:29

Interesting, this is how I would do it;

A Prismatic Joint may be more appropriate between the fork and mast; for the fork to move up and down, but will restrict all angular movement.

Then a revolute joint/hinge joint between the mast and body, to allow the mast to be tilted back and forth.

To make the fork to move up and down, I would use another joint between the fork and mast, a pulley joint. This will pull an invisible rope that will move the fork vertically, with the prismatic joint keeping it secure to the mast and restricting any forbidden movement.

Now for implementation;

BloodyMess has only the revolute joint; but does have the D6 joint which you can replicate the features of the other joints (infact you may be able to merge the pulley and prismatic joint together with a D6 joint - for extra stability). Bleeding has them all.

Hope this helps.

bigbob85

18-05-2009 17:56:28

Hmm, yes, that does sound like it'll work. Ill play around with it and see what i can come up with. Thanks heaps :)