- Home /
How to stop objects from losing energy due to joints?
I'm making a a molecular simulation where I have a bunch of molecules flying around in a box, and I don't want them to lose any energy to any outside sources. I'm basically connected atoms together to make molecules with fixed joints, but for some reason, those atoms seem to lose speed when connected with these joints. I've done some tests, and I'm fairly certain the joints are the problem. I've given the atoms and the walls a physics material with 1 bounciness and 0 friction, so they shouldn't be losing any energy to the walls. It looks like the atoms really lose energy when the spring stretches out (fixed joints behave like stiff springs, don't they?). I've replaced the fixed joints with spring joints just to be sure, and it seems like the same behavior is occurring. The molecules also lose a lot of energy when they're spinning. My thinking is the centripetal force causes the atoms to spring, which then causes them to lose energy. When the atoms are heading in the same direction (i.e, the spring is not activated) the speed remains the same.
Sorry if this was a little unclear, but I'm not sure what to do about this situation. Any advice?
Your answer
Follow this Question
Related Questions
Add velocity relative to ground? 1 Answer
Game running at different speeds on different quality levels. 1 Answer
Limiting rigidbody Speed. 5 Answers
Throwing objects with a fixed joint? 1 Answer
Measure speed in single axis 1 Answer