Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (499)
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 989 times)
0 Members and 1 Guest are viewing this topic.
Offline Jani Laakso

Junior Member




Do it with Java!


« Posted 2004-02-23 16: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 16: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.

Matt
Offline Jani Laakso

Junior Member




Do it with Java!


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

Quote

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 08: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 07: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.

Will.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (46 views)
2014-04-15 18:08:23

BurntPizza (42 views)
2014-04-15 03:46:01

UprightPath (58 views)
2014-04-14 17:39:50

UprightPath (40 views)
2014-04-14 17:35:47

Porlus (56 views)
2014-04-14 15:48:38

tom_mai78101 (79 views)
2014-04-10 04:04:31

BurntPizza (138 views)
2014-04-08 23:06:04

tom_mai78101 (238 views)
2014-04-05 13:34:39

trollwarrior1 (199 views)
2014-04-04 12:06:45

CJLetsGame (207 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org 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‑gaming.org
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!