Full Version: bullet dynamics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Quote:It would be cool if there was a formula to put tire vertical deformation in and get normal, friction force out.
Will read up on it, it should be possible to strip down the pacejka formula to get just the deformation at the current loads and feed it back in.
BTW, just tried the pacejka editor, nice one, that'll be really useful Smile
Info about spring rates of tires:
carsuspension.h #166
360 on second last turn of ruudskogen (flat out banked turn)
When suspension is at its travel limit displacement_ext is set to travel, then later saved as displacement..... which is somehow different to travel.... anyway, the value for distance gets smaller and smaller until the car floats away, wakes up and realises its not flying and craps its self.
The new displacement(wheel displacement) is clamped to [0, travel]. The difference between the old displacement end the new displacement is used to calculate the velocity. Then the old displacement is updated to the new displacement.

Quote:car floats away, wakes up and realizes its not flying and craps its self.
Can you make a screenshot?
Could try for a screenshot but would have to figure out replays Smile The car goes into the bend, squats down properly then gives a small jump straight up.
I'm putting the values out in the terminal and when the suspension is at full travel the spring_force is slowly falling (by no fixed amount, generally around 50, occasionally rises) and the final value for displacement is falling.
I got around it by giving travel a high value in the .car file and letting it bottom out on the spring load (put bump stops in the spring curve on 350Z but stiffer springs would do the same).
Will try setting displacement to travel when maxed in carsuspension.h and see what happens.
Quote:when the suspension is at full travel the spring_force is slowly falling
Interesting. Will look into it.

Quote:setting displacement to travel when maxed
The displacement is set to travel if displacement > travel.
Quote:The displacement is set to travel if displacement > travel.
Thats what I thought, just tried with a huge travel figure and the displacement value keeps falling.
It will fall if the car is moving up or the wheel is moving down. Do you mean that it falls in static case? What track, car, travel values are you using? I'd like to reproduce it.
360 on ruudskogen, second last turn, the flat out banked one.
I committed my version but suspension values aren't changed, 350Z does it too on the same turn only not so badly. The only other cars I tried where lightweights and had no problem, not sure how much difference that makes though. Will try FF with high downforce.
Can the body slide along the ground frictionless?
You can change the friction value in cardynamics.cpp line 673. It's not recommended to set it to zero(bullet manual).
info.m_friction = 0.75;
Looking at the terminal there are about 300 lines (stdout in carsuspension.h) from fairly balanced displacements to one or more wheels taking off.
Not some sort of self correction gravity in bullet is there? Smile
Quote:to one or more wheels taking off
Do you mean that the car is bouncing off the track? How often does it happen? Does it happen only on the banked turn?
Only had it happen about quarter of way around that turn. Can sometimes get the car back into shape and continue but not often.
Seems like the car is going from squat down to the top of suspension travel in an instant.
Just had it happen a lot more gently and it could be its only the suspensions reaction to the surface etc. Other times it felt like the car was being shot off the ground.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16