Object going past Hinge Constraint Limits
Posted: Thu Mar 26, 2020 11:19 pm
Hey guys, I'm new to Bullet.
I added a hinge constraint with a small angle limit. In order for this pinball flipper to work properly it needs super high torque/velocity. I've tried both setting angular velocity, and torque. I also played around with the motorSetTarget and other Motor settings but it was really slow no matter what settings I put in for the motor. I have everything working except the engine isn't respecting that this object should never go past the angle limits imposed. I'd think there has to be a way to hard cap the limit.
In the image, green are my limits, and red is how far past the limit the object has rotated. Is there a simple way to fix this? I tried tweaking softness, biasfactor, and relaxation factor. Right now they are all set to zero and work best. If I lower the angular velocity much slower, then it will work as expected, but I need high velocity.
Also, just curious, why does adding a hinge constraint to an object removed all effects of gravity? Is there a way around this. I was thinking of if you had a car in the air and the door opened on a hinge.
Thanks
I added a hinge constraint with a small angle limit. In order for this pinball flipper to work properly it needs super high torque/velocity. I've tried both setting angular velocity, and torque. I also played around with the motorSetTarget and other Motor settings but it was really slow no matter what settings I put in for the motor. I have everything working except the engine isn't respecting that this object should never go past the angle limits imposed. I'd think there has to be a way to hard cap the limit.
In the image, green are my limits, and red is how far past the limit the object has rotated. Is there a simple way to fix this? I tried tweaking softness, biasfactor, and relaxation factor. Right now they are all set to zero and work best. If I lower the angular velocity much slower, then it will work as expected, but I need high velocity.
Also, just curious, why does adding a hinge constraint to an object removed all effects of gravity? Is there a way around this. I was thinking of if you had a car in the air and the door opened on a hinge.
Thanks