Algodoo shakes
4 posts • Page 1 of 1
Algodoo shakes
The problem is that the springs are so strong that whenever the bottom circle looses touch with the top circle-shaped polygon (and they will loose touch, since it is a polygon, and not a perfect circle), the spring will in one time-step catapult it down a huge amount.
Either lower the spring strength, or transform the polygon to a circle. Or twiddle with Sim.targetPenetration.
In this scene I've try to show problem in simple way, sure thing transforming into circle solve it.
The problem is I can't fix it in "real" scene with car or tank or gun etc.
For example if heavy truck with suspension drive through polygon terrain wheels are shakes like this.
What is sim.targetPenetration anyway?
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Algodoo shakes
Set sim.targetPenetration to 0.005 makes everything works much better in my case (Belaz racing)
Too bad it cannot be saved with scene.
Too bad it cannot be saved with scene.
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Algodoo shakes
Oh, so that's why everything gets worse:
Phun
sim.targetPenetration = 0.001
Algodoo
sim.targetPenetration = 0.0001
Emil, please just set default value back to 0.001 (or even bigger).
Phun
sim.targetPenetration = 0.001
Algodoo
sim.targetPenetration = 0.0001
Emil, please just set default value back to 0.001 (or even bigger).
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Algodoo shakes
When two objects collide, there is bound to be some over-lap. The collision constraint then tries to reduce this overlap to "Sim.targetPenetration" meters. If this value is set to low (like 0), contacts can loose touch unintentionally. But if it is set to high, the hight of a pile of boxes will be shorter than the sum of the individual heights, which looks strange. For instance, with a targetPenetration of 0.001m, a pile with a 100 0.1m-boxes will be one full box too short (100*0.001m = 0.1m).
So this parameter, like everything, is a compromise. Different values fits different scenarios better and worse.
In a coming version I'll try making a better solution to the underlying problem.
So this parameter, like everything, is a compromise. Different values fits different scenarios better and worse.
In a coming version I'll try making a better solution to the underlying problem.
Emil Ernerfeldt, lead developer
- emilk
- Posts: 616
- Joined: Mon Aug 31, 2009 11:01 am
- Location: Umeå, Sweden
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



