# 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.

## 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 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.

1. 1
Rutin
32
2. 2
3. 3
4. 4
5. 5

• 12
• 9
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633314
• Total Posts
3011326
• ### Who's Online (See full list)

There are no registered users currently online

×