After much thinking about the car interface...
A new interface: steering.
It supports any number of wheels in 3 configurations:
Drive: This wheel only goes forwards or backwards (HingeJoint)
Steer: This wheel only turns (Hinge2Joint)
Full: Both (Hinge2Joint)
The truck, car, tricycle, whatever is defined like this:
<controller:steering_position2d name="a car">
Any number of wheels can be defined.
This code is still experimental, some documentation is lacking and names of properties, etc. Can be changed.
Also I have a bug that I am not able to solve, try the SimpleCar.world, first move the front wheels and then start moving forward, the car is not turning, but the wheels are rotating in the x axis.
I'd like to see this code in the SVN, so people can try to use, comment on the interface, etc. I'll try to add odometric measurement soon.
The simpleCar.model is simple and silly model just for testing purposes.
Log in to post a comment.