Jump to content
  • Advertisement
Sign in to follow this  
Kingofthespill

Lesson 40 Weirdness

This topic is 4078 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 .

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!