Game Development Reference
In-Depth Information
steps, slowing the animation down. On the other hand, a small time step can keep the
simulation numerically stable. Your chosen integrator plays a huge role here.
If you make your time step too large, the simulation may just blow up and not work. It
will be numerically unstable. Even if it doesn't blow up, you might see weird results. For
example, if the time step in the example simulation discussed in this chapter is too large,
then particles may completely step over obstacles in a single time step, missing the
collision that would otherwise have happened. (We'll show you in Chapter 10 how to
deal with that situation.)
In general, tuning is a necessary part of developing physics-based simulations, and we
encourage you to experiment—trying different combinations of parameters to see what
results you can achieve. You should even try combinations that may break the example
in this chapter to see what happens and what you should try to avoid in a deployed
game.
Search Nedrilad ::




Custom Search