Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Odejava: added AutoDisable / AutoEnable  (Read 1616 times)
0 Members and 1 Guest are viewing this topic.
Offline Jani Laakso

Junior Devvie

Do it with Java!

« Posted 2004-02-23 15:11:40 »

Got the auto disable to work now. Usefull feature, the API is very simple but somewhat crude ("manual") though, so I'll postpone committing this before I can come up with an reasonable good API.

You can set threshold and stepsize for each body that you wish to use auto disable feature.

This will make stacking more stable, e.g. big brick of walls is no longer generating any contact points as bodies get soon automatically disabled because their angular and linear velocities are very small for X steps. Also brick walls act now better because objects simply get stuck more easily, visibly it's like higher friction.

It's also reasonable to disable any body that is moving extremely little, e.g. a box lies on the ground. With this feature you get visibly inactive bodies to get disabled automatically. This can also help objects from "trembling" against flat ground or more complex terrain.

Note that ODE itself automatically enables any body that comes in contact with active body.

There's also some performance gain if you tend to have some objects that do not move all the time on the simulation, I assume this is quite typical scenario in various simulations.

I'll write new mail to this thread after I have committed this feature.
Offline Matt2000

Senior Newbie

Let's all help Java not suck.

« Reply #1 - Posted 2004-02-28 15:43:29 »

This sounds like a great addition since we've got all sorts of jostling of objects going on when they're lying on the ground, supposedly at rest.

I'll be able to try it out this week sometime, or whenever you manage to check it in.

Offline Jani Laakso

Junior Devvie

Do it with Java!

« Reply #2 - Posted 2004-03-10 10:10:01 »


I'll be able to try it out this week sometime, or whenever you manage to check it in.

Haven't got too much of time to code with Odejava lately, but this weekend I'll commit the AutoDisable/AutoEnable related functionality. Even if I had no time to do anything with the API, I'll just put it in. It works and the feature is easy to use, but the API is not too pretty. I'll comment the API and describe that they are bound to change in some way in the near future.

But at least people can use and test the new feature, which is always important..

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline harryk

Senior Newbie

Stone golems rock!

« Reply #3 - Posted 2005-03-01 07:54:19 »

has autodisable been removed again or did it never make it to the cvs?
Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #4 - Posted 2005-03-02 06:31:45 »

I believe Jani worked on autodisable but didn't have it fully ready for release.

It actually was commited by mistake a while ago, then undone.  So the changes are in there somewhere if you look hard enough (not that they are fully operational...).

Best idea would be to contact Jani and see how he is going with the patch.


Pages: [1]
  ignore  |  Print  

ivj94 (580 views)
2018-03-24 14:47:39

ivj94 (44 views)
2018-03-24 14:46:31

ivj94 (371 views)
2018-03-24 14:43:53

Solater (60 views)
2018-03-17 05:04:08

nelsongames (105 views)
2018-03-05 17:56:34

Gornova (147 views)
2018-03-02 22:15:33

buddyBro (690 views)
2018-02-28 16:59:18

buddyBro (90 views)
2018-02-28 16:45:17

xxMrPHDxx (492 views)
2017-12-31 17:17:51

xxMrPHDxx (728 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
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!