Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (604) Games in Android Showcase (171) games submitted by our members Games in WIP (654) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Is ODE good enough for me?  (Read 995 times) 0 Members and 1 Guest are viewing this topic.
CuppoJava

Junior Newbie

Java games rock!

 « Posted 2005-03-14 22:02:53 »

Hi,
I'm trying to create a 2D top-down shooter with realistic physics. I've tried my own 2d impulse physics engine for about half a year now, and I'm pretty much there, but there are quite a few of small problems that I can't solve, or find mention about on any paper.

I need my bodies to be constrained to only 2 dimensions. I want it to be fast too, so I don't want ODE to be doing extra work for 3D and then applying a 2D constraint.

The only extra feature I need, is to specify different directions for friction. ie. For a car, I want the sideways friction to be greater than the forward and backward friction.

Can ODE do all that I need? If so, I'm really looking forward to using it.

-Cuppo
weston
 « Reply #1 - Posted 2005-03-21 16:39:52 »

hmm, I wonder if someone as *any* information about this... I've been wondering about it for a long time and I saw another thread on the same topic a while ago with no replies.

CuppoJava please let us know if you have any plans for sharing your 2d physics engine, I know of at least one  programmer looking for someting similar...

for(int i = 1; i > 0; i++)
System.out.println(i+" cups of java downed");
darkprophet

Senior Devvie

 « Reply #2 - Posted 2005-03-21 18:22:11 »

Quote

so I don't want ODE to be doing extra work for 3D and then applying a 2D constraint

Well, ode is very fast for 2d and 3d. So really, there shouldn't be a problem with speed.  You will need to apply your own 2d constraints, but the calculations shouldn't be a problem. Again, profile and see...

Quote

The only extra feature I need, is to specify different directions for friction. ie. For a car, I want the sideways friction to be greater than the forward and backward friction

Yup, this can be done using contact parameters:

 1  2  3 `contact.setMode(Ode.dContactApprox_1 | Ode.dContactMu2);contact.setMu(100);contact.setMu2(500);`

Mu is a friction coeffecient which can also be used as the maximum force applied to the bodies as friction. Mu is in the direction of the contact, Mu2 is in sideways friction you speak about. And the normal is the normal of the two mu directions...

Well, using ode is far far better than rolling out your own..

DP

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 bilznatch (27 views) 2015-08-04 11:03:17 SHC (44 views) 2015-08-01 03:58:20 Jesse (25 views) 2015-07-29 04:35:27 Riven (48 views) 2015-07-27 16:38:00 Riven (26 views) 2015-07-27 15:35:20 Riven (28 views) 2015-07-27 12:26:13 Riven (19 views) 2015-07-27 12:23:39 BurntPizza (42 views) 2015-07-25 00:14:37 BurntPizza (56 views) 2015-07-24 22:06:39 BurntPizza (35 views) 2015-07-24 06:06:53
 theagentd 50x wessles 48x basil_ 32x KaiHH 26x Riven 21x mooman219 17x bornander 16x orangepascal 16x ags1 16x KudoDEV 13x CelestialCreator 11x princec 11x klaus 11x pquiring 11x israelg99 9x philfrei 8x
 List of Learning Resourcesby gouessej2015-07-09 11:29:36How Do I Expand My Game?by bashfrog2015-06-14 11:34:43List of Learning Resources2015-05-31 05:37:30Intersection Methodsby Roquen2015-05-29 08:19:33List of Learning Resources2015-05-05 10:20:32How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21
 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