🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Lesson 40 Weirdness

Started by
0 comments, last by lc_overlord 16 years, 9 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 .
Advertisement
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