JV-ODE Physics Thread 3

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Thread 3

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Maybe yes, I need to restore the rotation of the limb components and the joints are working okay. Only I'm worried about the manual's statement that the angle is set to 0 based on the current position of objects.

Let's say a worm is made of 5 spheres, each with a hinge2 joint. On creation the worm is vertical in the air, with all joints at 0 degrees. The worm is dropped onto a table where it half hangs over the edge. Joint two is now 90 degrees...

Start position


        O
        |   - Joint 4
        O
        |   - Joint 3
        O
        |   - Joint 2
        O
        |   - Joint 1
        O

        +---------
        |#TABLE###
        |#########

End position










       +O-O-O
       O+---------
       ||#TABLE###
       O|#########

Saving the data to an array, we can recreate the positon of the worm by positioning the spheres on and by the table, and create joints at the appropriate places between them. BUT when we create joint 2, it's actually at 90 degrees, but the manual suggests this position will be set as 0 degrees.

Hmmm. Think I'll try a test case with the Rope demo and see what happens...