Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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 and static objects  (Read 1737 times)
0 Members and 1 Guest are viewing this topic.
Offline campino

Junior Newbie





« Posted 2005-12-11 10:25:05 »

hi,

I think it is necassary to have some objects which didn't fall down by the gravity. I get the tip not to add them to bodies but to spaces, but how can I control there position by using this trick? Or is there something else which can be used for that?

campino
Offline arne

Senior Devvie




money is the worst drug- we should not let it rule


« Reply #1 - Posted 2005-12-11 12:40:17 »

If the objects are not allowed to move, also when they collide with other objects, then this is easy:
simply don't add your Geom to a Body.

You need Spaces to detect collisions. So you have to add both Geoms with Bodies and Geoms without Bodies to the Space, because you want to get collisions between the two.

:: JOODE :: Xith3d :: OdeJava ::
Offline campino

Junior Newbie





« Reply #2 - Posted 2005-12-12 12:07:41 »

So ode gets that there is an object when I didn't add it to a body, the world, a space or something like that? mhh...
but okay, thanks again Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline arne

Senior Devvie




money is the worst drug- we should not let it rule


« Reply #3 - Posted 2005-12-12 18:23:05 »

It has to be added to a space. I believe I said that in my previous post. (I believe you want to have collisions with it)

:: JOODE :: Xith3d :: OdeJava ::
Offline m_ali_alex

Senior Newbie





« Reply #4 - Posted 2005-12-22 21:19:18 »

can you please help me on getting odejava
i can not get it to work
thanks
m_ali_alex@yahoo.com
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #5 - Posted 2005-12-24 01:39:25 »

can you please help me on getting odejava
i can not get it to work
thanks
m_ali_alex@yahoo.com


That's why the forums are here - please use them.  We are not going to do your work for you but are happy to help if you ask clear questions.  Most of the forum members prefer using the forums thus increasing the amount of public knowledge about Odejava.

Will.

Offline m_ali_alex

Senior Newbie





« Reply #6 - Posted 2006-01-11 18:29:25 »

i got ur idea
here is my question :
hi there
i wonder if u can help me on finalizing the odejava instalition
for me every thing seems to be in its place but for some reason i can only compile the odejava   .java files but when running them it gives me a run time error
here is what i did
i added the odejava.dll to C:\j2sdk1.4.2_10\jre\bin  and i also tried adding it to the C:\j2sdk1.4.2_10\jre\lib\i386
in some examples the first config tend to give me a command prompet text spining with no grapgh, but the i386 config gave me always a run time error
so i kept it on the  C:\j2sdk1.4.2_10\jre\bin 

i added the the .jar files to the C:\j2sdk1.4.2_10\jre\lib\ext "except for the odejava.jar and the odejava_xith3d.jar i added them to different dir and added them to the classpath as well so it java can refer to them without including them on the java.exe command
i attached a pic so i can see what am talking about
please i will appreciate it if you can answer me as soon as possible
thanks
Offline arne

Senior Devvie




money is the worst drug- we should not let it rule


« Reply #7 - Posted 2006-01-11 20:04:26 »

now we're getting somewhere Smiley

Could you print the error message and also the stack-trace? That would help us very much to analyse your problem.

Have you also xith3d installed? You'll need a renderer to render your physics stuff. Odejava is only calculating the physics.

:: JOODE :: Xith3d :: OdeJava ::
Offline m_ali_alex

Senior Newbie





« Reply #8 - Posted 2006-01-12 16:26:10 »

hi Rane
i guess i did get every thing to work but  i did not know for the same problem u faced before
which is i tried to run the HighLevelApiExample.java
and it gave me no graphics but a spining command line .. but after i read the answer for your question it is clearer now

however the file you attached CopyOfOde2XithTest2.java

gave me an error when i try to compile it

C:\Documents and Settings\mali\Desktop\New Folder\CopyOfOde2XithTest2.java:106: cannot resolve symbol
symbol  : variable TestUtils
location: class CopyOfOde2XithTest2
        Geometry geom = TestUtils.createQuad(
                        ^
1 error

Tool completed with exit code 1


Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #9 - Posted 2006-01-15 04:45:00 »

TestUtils is from Xith3D I think, try adding xith3d.jar to your classpath.

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.

xFryIx (62 views)
2014-11-13 12:34:49

digdugdiggy (41 views)
2014-11-12 21:11:50

digdugdiggy (36 views)
2014-11-12 21:10:15

digdugdiggy (30 views)
2014-11-12 21:09:33

kovacsa (53 views)
2014-11-07 19:57:14

TehJavaDev (56 views)
2014-11-03 22:04:50

BurntPizza (55 views)
2014-11-03 18:54:52

moogie (70 views)
2014-11-03 06:22:04

CopyableCougar4 (71 views)
2014-11-01 23:36:41

DarkCart (156 views)
2014-11-01 14:51:03
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!