SimpleMotor seems not working correct on the left wheel.

Discuss any Chipmunk bugs here.
Post Reply
aisman
Posts: 145
Joined: Tue Mar 04, 2008 2:21 am
Contact:

SimpleMotor seems not working correct on the left wheel.

Post by aisman »

Hello slembke,
SimpleMotor seems not working correct on the left wheel.

I have tried to port this Box2D sample:
http://www.youtube.com/watch?v=ZALCNpHApro

to Chipmunk => I using the Chipmunk4PB wrapper:
http://youtu.be/STuQEyx_8Ts
Please watch to both wheels, the left one seems to hve not so perfect working as the right wheel.
Can I improve it? Or is there a better way to simulate it (I use cpSimpleMotor).
Chipmunk4PB: The fastest way to write games together with PureBasic and the Chipmunk physics engine.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: SimpleMotor seems not working correct on the left wheel.

Post by slembcke »

The motor looks like it's working fine, it just the spacing on the wheel or something.

What I would do is attach the wheels to the static body using 0 length springs instead of a pivot joint. Then move them a little closer to the curve. That way when a ball squishes between the floor and the wheel, the spring will push the wheel down onto the ball and keep it in contact better.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests