Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Game Mechanics / Re: Phys2D FixedJoint unstable? on: 2008-05-20 20:47:00
I don't remember what determinism is in computer science.  Smiley  I meant that if you set up a physical scenario with ODE, and let it run twice, you'll get two different outcomes.  A box that falls on its corner near a ledge might topple off the ledge on one run, and then on the next run, tip back and settle on the ledge.  Like this guy says:  http://gamecreator.blogspot.com/2007/03/ode-determinism.html

Box2D does appear to be worth trying, so I'll move on to that and keep my Phys2D exploration on hold for now.  I know of JBox2D, and I would prefer to use that since it's pure Java--but maybe Java bindings to Box2D itself would also be worthwhile.  I don't immediately see any of those around though.
2  Game Development / Game Mechanics / Phys2D FixedJoint unstable? on: 2008-05-20 05:48:18
Hi, I've recently tried Phys2D and found it generally good, and possibly applicable to the game I'm making.  However I'm troubled by an instability I've observed:  When I connect a chain of several objects via FixedJoints--say, four small boxes widely spaced in a U-shape, sort of like in Phys2D's Demo19--and drop the resulting shape onto a floor, it bounces and wiggles a bit, as one might expect, but the bouncing gradually becomes worse until the shapes simply fly out of sight.  Demo19 looks deceptively stable in comparison to this scenario, but I tried copying its setup and tweaking it a little, and I reproduced the same thing pretty easily.  Why does this happen?  Does Phys2D belong to some general class of physics engines of which this sort of instability is a basic feature?  Or is it conceivable that somebody could write a nicer, stabler FixedJoint without too much trouble?  My game is currently using ODE, which hasn't this problem...  though it is very unfortunately saddled with that nasty third dimension.  I don't know what people see in that thing.  Smiley

Special bonus question:  Cursory online research suggests that ODE is nondeterministic; experimentation suggests that Phys2D (and therefore perhaps Box2D et al) is deterministic.  Is this correct?  Is JOODE nondeterministic?  My game likes determinism!
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (105 views)
2013-05-17 21:29:12

alaslipknot (114 views)
2013-05-16 21:24:48

gouessej (142 views)
2013-05-16 00:53:38

gouessej (138 views)
2013-05-16 00:17:58

theagentd (150 views)
2013-05-15 15:01:13

theagentd (135 views)
2013-05-15 15:00:54

StreetDoggy (178 views)
2013-05-14 15:56:26

kutucuk (201 views)
2013-05-12 17:10:36

kutucuk (202 views)
2013-05-12 15:36:09

UnluckyDevil (208 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.095 seconds with 21 queries.