11
$\begingroup$

I am trying to setup some physical simulation in the BGE where it would be best if the the total energy of the system is conserved. However, if looks like I can't get the physics engine to keep the energy level even remotely constant.

Things I've done:

  • Render Settings: Toggled Use framerate
  • World: Gravity set to 0, played around with the FPS and physics accuracy, sleep disabled.
  • Dynamics: All Damping set to 0, tried 'rigid body' as well as 'dynamics'
  • Material: Friction set to 0
  • Material: Elasticity of Collision set to 1

Here is a test file: Layer 1 and 2 has two separate test scenes. There is a notable increase in the speed of all objects after each collision (as seen in the console window)

Am I missing something? Or am I asking too much from a game-centric physics engine?

$\endgroup$
3
  • $\begingroup$ If you can't find an answer here, I've gotten lots of good info & discussions on BlenderArtists.org: $\endgroup$ Mar 27, 2014 at 6:42
  • $\begingroup$ This is their game engine support forum: blenderartists.org/forum/… $\endgroup$ Mar 27, 2014 at 6:42
  • $\begingroup$ Thanks, if this doesn't work out, I will try BA. $\endgroup$
    – Mike Pan
    Mar 27, 2014 at 7:06

2 Answers 2

3
$\begingroup$

I've written a Blender/Bullet simulation of a Newton's Cradle that doesn't conserve energy. Here's two animations that illustrate the problem:

Newton's Cradle animation Newton's Cradle animation

It's all done with rigid bodies, and the wooden top piece doesn't participate in the physics. The initial angle of the first ball is an adjustable parameter - 90 degrees in the first animation, 60 degrees in the second. You can reproduce everything by running this script in Bullet 2.69. Make sure the Tool Shelf is open to get to the simulation controls.

I suspect that it's all the same problem.

$\endgroup$
1
  • $\begingroup$ Looking at this my best bet for the cause is collision error. $\endgroup$ Oct 31, 2015 at 2:05
-1
$\begingroup$

Wala, the following video shows an amazing tutorial. I am very impressed.

https://www.youtube.com/watch?v=v_SEkirxgNU

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .