10
$\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$
  • $\begingroup$ If you can't find an answer here, I've gotten lots of good info & discussions on BlenderArtists.org: $\endgroup$ – Thom Blair III Mar 27 '14 at 6:42
  • $\begingroup$ This is their game engine support forum: blenderartists.org/forum/… $\endgroup$ – Thom Blair III Mar 27 '14 at 6:42
  • $\begingroup$ Thanks, if this doesn't work out, I will try BA. $\endgroup$ – Mike Pan Mar 27 '14 at 7:06
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$
  • $\begingroup$ Looking at this my best bet for the cause is collision error. $\endgroup$ – GiantCowFilms Oct 31 '15 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$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.