Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Is ODE good enough for me?  (Read 903 times)
0 Members and 1 Guest are viewing this topic.
Offline 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.

Thanks for your input.
 -Cuppo
Offline weston

Junior Duke





« 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");
}
Offline darkprophet

Senior Duke




Go Go Gadget Arms


« 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.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (28 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!