Joints working

My current goal is to get that snow mobile working. On this way, there are several obstacles and I managed to get around one of them. My plan is to implement the tracks as conveyor belts as illustrated in the Newton Game Dynamics forum - where it didn’t work as expected, but I don’t understand any of the alternatives. To get this working, I needed to get joints working. And I got them working.

The general idea relies on the tracks having a different material for Newton than the main body. Since Newton allows only one material per rigid body, I had to move the tracks in different bodys and connect them to the main body. On first try, this caused the snow mobile to float in space and not move at all. To see whether this was caused by joints, I removed them. Then I found out that the problem was that I forgot to set mass and moment of inertia for the tracks, which caused them to be completely static. Once I fixed this, but before I reenabled the joints, I took this nice picture:

Snow mobile with tracks lying around

When I reenabled the joints, I got the positions wrong:

Snow mobile with tracks as wings, looking very stupid

I eventually got this working:

Snow mobile looking just like it did a few days ago, but with tracks attached as seperate bodys

So just now I decided to change the joint to a flexible hinge joint, which allows the track to rotate around an axis. This is more or less all suspension this vehicle will ever get, so it’s gonna be a rough ride, but it’s working.

A snow mobile, with tracks bent

Next thing will be using materials, and then getting material callbacks working.

Written on September 8th, 2005 at 05:17 pm

2 Comments

  1. Posted 0 Bonus Month! 0

    Björn Gernert

    Also, ich hätte ja nie im Laben gedacht, daß du das wirklich durchziehen willst, aber nagut.
    Weißt du denn schon, in welchem Jahrhundert das Spielen mal "spielen" wird?
    Außerdem finde ich, du solltest dir mehr Aufmerksamkeit verschaffen. Vielleicht gibt es ja noch andere Leute da draußen, die gerne Sachen für die machen wollen. Maps, Gegenstände, Waffen etc.
    Ich hoffe ja auch auf eine Erwähnung in den Credits ^^
    Btw.: Das kleine Medipack ist bald fertig. Muss mich halt nur noch ein bissel durch diesen Editor fuxen.
    ---
    Kann ich eigentlich auch Grafiken da draufmachen oder kannst nur du das?

  2. Posted 0 Bonus Month! 0

    Septdeneuf

    Oh der Barney denkt im Laben nicht. War bestimmt ein Tippfehler und soll Laden heißen!

    Ok, now let's continue in English, since you obviously prefer that language. Or not, whatever. I had no idea you were really doing updates over the last few days, I'm genuinely impressed. Actually I was only coming here to have a look at your sourcecode, since I'm currently making my first steps towards a CSS based Design. Since today afternoon actually. First I'm going to have to learn to get some usual CSS working properly, let's try and hope the best. You're going to be so happy that I'm working on getting rid of the frames.

    You have one of these pictures as a new avatar in the AMS, don't you? Well, it's nice to see you have a selfmade one now, but the other was funnier!

    Ok I'd better stop babbling since I don't completely understand what the article is about anyway. I assume it's that thing with the missing gravity you told me about, right?

    Well, now I'm going to learn something, bye!

Write your own