Sign in to follow this  

Lesson 40 Weirdness

This topic is 3742 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
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

This topic is 3742 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this