Is there any means to acces the body of a Tire?

patie

16-04-2007 01:12:21

I would like to attach that body by means of a gear joint to another rotating part of my car? any suggestions to get a pointer to it?

unclepauly

16-04-2007 09:26:22

im not sure i understand.

are you using the vehicle class? if so, then in your userCallback function you have:


for (Car::CarTire* tire = (Car::CarTire*)getFirstTire(); tire; tire = (Car::CarTire*)getNextTire( tire ) )
{


which loops through all 4 tires.

patie

16-04-2007 21:45:20

what I want is access the OgreNewt::Body or Newton equivalent of the tire
iwant to attach tires by gear joints to other parts of my car. getFirstTire(),getNextTire() will return a "SimpleTire" isnt it? i would like to acces the body of that tire. Is it possible, from my research in the OgreNewt source and the absence of possible customisation in the Newton SDK code, i think it would require another vehicle system?! :x :? for that purpose..

Game_Ender

16-04-2007 22:59:36

Yeah, its sad the vehicle system (which is basically just using the Newton SDK) is closed source. I haven't looked at myself, but when I start my vehicle project I was going to be starting from scratch as well.

Langhole

16-04-2007 23:13:41

There are other physics libraries out there that have vehicle systems/classes built in as well, maybe not 'better' but some of them are just as functional. I am personally getting interested in raycast vehicles.. seems fun almost.