...
Ah, interesting. Ofcourse, that can be done, not even too difficult.
Yep, well, in the end a lot of it comes from just growing the physics
model, I've noticed. You can add more and more stuff, and get a lot of
functionality in the beginning, but new parts will enhance the
feeling. It's great.
Just did Pacejka modeling yesterday night btw. Phew, it worked after
just 3 hours! :)) It's just strange to use it as a braking curve as
well. That doesn't seem right.
...
It would involve detecting strange changes in energy. Note that a lot
of apps do this 'type' of programming. Excel for example was/is
debugged using multiple different algorithms to do the same thing. 1
is the smart way, the other (non-release) is the slow but robust way.
If the 2 algo's disagree, you can print a message.
The rigid body classes from Chaney also has an Energy() function. It's
meant as a test; the total energy of the car while flipping and flying
in the air should remain constant. If not, you know there's some funny
business. It's hooking in another approach which should match.
...
Yep, limit velocity rather than movement. So 1/2mv^2 + potential
energy (mg) (relative to the suspension) remains equal.
Ah well, it's running ok now at 250Hz, but there's a big problem
ahead. Now that I have Pacejka running I have aligning moment and can
have some fun trying force feedback, the biggest problem is the
geometry of the track. I have a small (Carrera) track which I want to
release, but the polygon subdivision is too small, so you get real
bumps as opposed to smoothly varying gradients. The same is true for
the Oval, although it is a bit better there.
So I'll have to do splines to define the road surface, and create a
patch surface from the road. Thinking about Hermite splines to start
with, but will have to dive into patch/ray intersections soon. WSC
does multiple spline types, ofcourse. ;-)
Wonder how it does bumps, like the famous bump in Monaco. That's
currently the biggest thing I see in finally getting acceptable
laptimes on the tracks. But it's a big challenge, all those splines. A
lot of work for the track editor.
Ruud van Gaal, GPL Rank +53.25
Pencil art : http://www.marketgraph.nl/gallery/
Car simulation: http://www.marketgraph.nl/gallery/racer/