Attaching objects together

DudeCooper

16-09-2009 00:27:14

Hi i was wondering if it is possible to have two physics objects attached to each other but be able to rotate still ie having a ground and a roundabout. I am trying to make a train with two wheel bases which move with the train body but can rotate on the Y axis. I can think of a way such as forcing the objects to move with it but that seems a bad idea.

Cheers guys.

PJani

16-09-2009 17:47:54

hinge? universal joint?

OgreNewt::BasicJoint::Hinge(OgreNewt::World*, OgreNewt::Body* child, OgreNewt::Body* parent, Ogre::Vector3 pos, Ogre::Vector3 pin_direction)

DudeCooper

16-09-2009 23:14:14

Thank you. i will have a look into these.

cheers for your help