SimpleMotor seems not working correct on the left wheel.

Discuss any Chipmunk bugs here.

SimpleMotor seems not working correct on the left wheel.

Postby aisman » Sat Jun 16, 2012 3:28 pm

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
aisman
 
Posts: 143
Joined: Tue Mar 04, 2008 2:21 am

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

Postby slembcke » Sat Jun 16, 2012 4:49 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron