joints

yan007

13-04-2006 19:50:21

is there some documentation about joints?

i would like to create an axle and something thats spins around the axle?
which type of joint should i take?

yan007

14-04-2006 12:25:44

walabar you must know this ????

danharibo

14-04-2006 12:27:10

you do know about the OgreNewt::veichle class right?

yan007

14-04-2006 13:30:26

yes of course, i'll show you the problem
it's not for a wheel, but i found a sollution:
OgreNewt::BasicJoints::Hinge

the reason why i need an axle: see the picture, i would like this to rotate free (so using steering from the tire class is not a sollution)



the next problem:
for now, the whole black piece is the chassis of the vehicle

but if i would like to use joints my chassis woul have different scenenodes is that possible ? and how ??

walaber

14-04-2006 17:02:43

you need to make the mesh into seperate pieces (rigid bodies): the "board" the "wheel mounts" and the "wheels".

connect the "wheel monuts" to the "board" with a hinge (pin = UNIT_Y)

connect the "wheels" to the "wheel mounts" with another hinge (pin = UNIT_X or UNIT_Z)

yan007

14-04-2006 21:23:38

my wheel mount is ok !



but i dont know how i should get the tire to this wheel mount,
i use the standard tire class,

Tire (OgreNewt::Vehicle *vehicle, Ogre::Quaternion localorient, Ogre::Vector3 localpos, Ogre::Vector3 pin, Ogre::Real mass, Ogre::Real width, Ogre::Real radius, Ogre::Real susShock, Ogre::Real susSpring, Ogre::Real susLength, int colID=0)

explain simple plz (if the sollution is difficult),

thx for previous help

danharibo

14-04-2006 21:28:52

as scene as it isnt a veiecle you could just add a joint, try newton playground to find what joint you need

walaber

14-04-2006 22:53:54

yeah, you can't use the vehicle tires like that outside of the vehicle system. so for this you will need to use a chamfer cylinder shape for a standard body as your wheel.

yan007

15-04-2006 13:23:56

k, that might be a sollution,
but then i have the problem that my wheels in the back have a suspension and the wheel in the front not, i think that would give a strange behavior off the vehicle, but i'll try it,

i thougt mayby to define the wheel mount as a vehicle, and then it would be possible to attack the tire, but that isnt possible probably ?

walaber

15-04-2006 20:00:13

why not remove the vehicle altogether and just use joints? the object you show wouldn't have any suspension in reality anyway...