Page 1 of 1

Problev with "angular velocity limit"

Posted: Thu Feb 28, 2013 12:24 am
by DeniZka
Hello masters. I got a problem with angular velocity limit
I'm triing to simulate real truck ang gravity params with chipmunk and stuck with angular velocity limitation.

Problem:
Truck gears multiply engine torque on the wheels to huge number :shock: . To prevent uncontroled roration I used agnularVelocityLimit function on driving wheels. But with this torque(look img) velocity not even get to maximal avalable (look img). With lower limit (about 4) real velocity is from 0 to 1 =(
Please advice how to solve.

Another problem:
When ang.vel.limit is set and wheels are on slope them accelerated by gravity over the limit

Additionaly:
1) Friction set to 1.0 for ground and wheels
2) With less gravity situation a bit better (but not real)
3) With no friction velocity get limit (but no move)

On image: truck trying to go backward.
Sorry for my french...

Re: Problev with "angular velocity limit"

Posted: Fri Mar 01, 2013 12:32 pm
by slembcke
I'm not sure how the angular velocity limit alone could have done that. Do you also have damping enabled or some other joints that might be causing it?

Re: Problev with "angular velocity limit"

Posted: Sun Mar 03, 2013 1:46 am
by DeniZka
No damping set for space
Wheels and body connected by PinJoint
If all wheels are driving - situation a bit better but still sad
Can i share sources? on python
I'll try to do a test just for circles...

I using pymunk 3.0.0 May be it's old lib with that kind of bug?