[Ode] Geoms in Body

Hi

I’m new to Odejava, so there’s much stuff I don’t understand. I want to have some Geoms linked fixed to each other. I tried to put them in the same body, but then the original position of the geoms is set to the position of the body.
I’m not sure, if for fixing this problem I should put all geoms in different bodies and then add JointFixed to them, because in the api it says this is for debugging only.

Have I done anything wrong, or is this the only solution?

You can add multiple GeomS to a Body, just wrap them in GeomTransformS first so they can be offset from the attachment point of the Body.

for an example, see: org.odejava.test.simple.MultiGeomTest

Thanks a lot !!! :slight_smile:

Hmmm …
this far it’s working, but when I let it fall (using the gravity), the body changes it’s position, but in the xith view nothing changes.

Is it supposed to be like this??

Are you using the odejava.display package to bind xith and odejava?

I’m using odejava.xith.test.RunDemo

I think it uses odejava.display

it sounds like it isn’t bound properly to the display view, or the display view isn’t being updated or rendered.

Will.

Ok, … I’ve fixed it now 8). My problem was this: I have shown the Geoms themselves and not the TransformGeoms they belong to, so they weren’t transformed.

So it’s falling now. I had to adjust the position now relative to the position of the bodies for the Geoms to be at the old place. Because I haven’t rotated the bodies I think I don’t need to rotate the geoms. But this is the point that’s confusing me: Some Geoms have the same rotation as before (when showing the Geoms without GeomTransformS) , but some also are rotated twice or haven’t been rotated (I can’t say exactly)

It’s driving me nuts !!