Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 [3]
  ignore  |  Print  
  Added realistic physics engine for Xith3d (ODE)  (Read 11869 times)
0 Members and 1 Guest are viewing this topic.
Offline Kevdog

Junior Devvie





« Reply #60 - Posted 2003-12-08 16:58:40 »

For OdeCar (which is a lot of fun) I found it much easier to use a chase view, so I added the following:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
                } else if (camera == 4) {
                    // Chase Camera
                    viewCenter = odeCar.getObjectPosition(4);
                    viewLocation = odeCar.getObjectPosition(4);
                    viewLocation.x -= 0;
                    viewLocation.y -= 0f;
                    viewLocation.z += 3f;
                   
                    viewCenter.x += 0;
                    viewCenter.y += 1f;
                    viewCenter.z += 3f;

                    view.getTransform().lookAt(viewLocation, viewCenter,
                        new Vector3f(0, 0, 1));
                   
                    Matrix3f m = odeCar.getObjectRotation(4);
                    Matrix3f m2 = new Matrix3f();
                    m2.rotX((float) Math.PI / 2);
                    m.mul(m2);
                    view.getTransform().setRotation(m);

                    Vector3f chaseV = new Vector3f(0, 10f, 50f);
                    Transform3D chaseT3D = new Transform3D();
                    chaseT3D.set(chaseV);
                    view.getTransform().mul(chaseT3D);
                   
                   
                }


and

1  
2  
3  
4  
        case '4':
            camera = 4;

            break;


This adds the "traditional" chase view found in most driving games these days Cheesy

There are only 10 types of people, those who understand binary and those who don't!
Offline Jens

Senior Devvie




Java for games!


« Reply #61 - Posted 2003-12-09 10:34:41 »

Is the jar still broken? I get the same error like before (UnsatisfiedLinkError: new_dWorld) and it works fine without the jar.

Suggestion: It's probably better to either make the windows native library a seperate download or include the linux and mac library in the full download.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #62 - Posted 2003-12-09 11:21:41 »

I am planning to spend some time with Odejava later in this week.

The package certainly needs some work as the current one is more an temporary solution. Will add linux and macos libraries to odejava-0.1.2 package aswell.

Other important thing is CVS that I need to set up to odejava.dev.java.net.

PS. Kevdog, good going! Tell me when you got new car simulation ready Smiley  I've build an human body (crash test dummy from 3dstudio) that can dropped in a boxstack, it's pretty funny.

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

Junior Devvie





« Reply #63 - Posted 2003-12-09 19:08:02 »

I'm totally new to ODE, though I had seen it before, but wasn't interested since it wasn't Java.  Maybe I'll have a snoop around as I really like messing with Physics Cheesy

There are only 10 types of people, those who understand binary and those who don't!
Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #64 - Posted 2003-12-17 09:06:34 »

I write Odejava related post one more time to this thread just to remind everyone that Odejava discussion is moved to Physics forum.

See the link below:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=physics;action=display;num=1070980274;start=0

I just wrote some guidelines and ideas on how to proceed with this Project.

Hopefully Xith3d and Java Physics guru's join to Odejava's physics thread and share their comments especially when the new Odejava version is out.


Hope you all have nice Christmas, Jani
Pages: 1 2 [3]
  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.

Mr.CodeIt (10 views)
2014-12-27 04:03:04

TheDudeFromCI (14 views)
2014-12-27 02:14:49

Mr.CodeIt (25 views)
2014-12-23 03:34:11

rwatson462 (56 views)
2014-12-15 09:26:44

Mr.CodeIt (46 views)
2014-12-14 19:50:38

BurntPizza (92 views)
2014-12-09 22:41:13

BurntPizza (113 views)
2014-12-08 04:46:31

JscottyBieshaar (86 views)
2014-12-05 12:39:02

SHC (96 views)
2014-12-03 16:27:13

CopyableCougar4 (102 views)
2014-11-29 21:32:03
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!