Advertisement

Lesson 40 Weirdness

Started by September 15, 2007 11:59 PM
0 comments, last by lc_overlord 17 years, 2 months ago
I have been modifying some of the simulation parameters and have found that the program is extremely sensitive to particle mass values. The code looks like this:


RopeSimulation* ropeSimulation = new RopeSimulation(
		80,	// 80 Particles (Masses)
		0.05f,	// Each Particle Has A Weight Of 50 Grams


Try changing it this and wait for about 16 seconds to see it go crazy:

		0.0409f,// Each Particle Has A Weight Of 50 Grams




Making it heavy is less interesting, which starts acting unusual at around 4.0 .
Yea, that's the problem with game physics simulations, they tend to crap out when parameters like the weight starts to approach 0, normally this would be solved by increasing the frequency of the physics calculations, but in game physics this is not always possible.
So the best solution in many of these cases is to use a healthy amount of damping and force limiting, i don't know about if it applies to this one as well.

This topic is closed to new replies.

Advertisement