odejava and static objects

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

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.

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:

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)

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.

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

now we’re getting somewhere :slight_smile:

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.

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

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

Will.