bullet dynamics - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: bullet dynamics (/showthread.php?tid=1262) Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - stan.distortion - 04-21-2010 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 - joevenzon - 04-21-2010 Info about spring rates of tires: http://www.hunter.com/pub/undercar/SAEATS13/ - stan.distortion - 04-22-2010 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. - NaN - 04-22-2010 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? - stan.distortion - 04-22-2010 Could try for a screenshot but would have to figure out replays 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. - NaN - 04-22-2010 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. - stan.distortion - 04-22-2010 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. - NaN - 04-22-2010 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. - stan.distortion - 04-22-2010 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. - stan.distortion - 04-22-2010 Can the body slide along the ground frictionless? - NaN - 04-22-2010 You can change the friction value in cardynamics.cpp line 673. It's not recommended to set it to zero(bullet manual). Code:`info.m_friction = 0.75;` - stan.distortion - 04-22-2010 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? - NaN - 04-22-2010 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? - stan.distortion - 04-22-2010 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. - stan.distortion - 04-22-2010 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.