Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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] Static And Dynamic Joints  (Read 1540 times)
0 Members and 1 Guest are viewing this topic.
Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Posted 2005-02-19 20:17:58 »

Is there a way to link a dynamic object via say a JointHinge to a static object.

This is helpful for things like doors, The door is attached to the wall, but the wall is static (not affected by forces and gravity).

Ive looked at the code for Joint which leads back to OdeJNI and OdeJNI.get_BODYID_ZERO

Does BODYID_ZERO indicate that this is attached with the world?

Thanks, DP

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline holodri

Senior Newbie

Java games rock!

« Reply #1 - Posted 2005-03-01 20:44:28 »

did someone already solve it ?, i'd be very curious.
my actual workaround is kind of a heavy stone i attached my moving bodies to and i'm not satisfied with it  Cheesy

i already tried to create the joints with lowlevel api and connect to body_id_zero but the result was an ode-crash....

i know things happen due to my inferior programming knowledge. therefore my hope is still alive Wink

Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #2 - Posted 2005-03-02 04:32:14 »

I don't think BODYID_ZERO should be used for this, as I think that is the logical equivilent of 'null'.

I would have suggested attaching it to a very heavy Body.  Beyond that I'm not sure.  Have you tried the ODE mailing list?  They are pretty good with things like this.


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

Senior Newbie

Java games rock!

« Reply #3 - Posted 2005-03-05 08:46:44 »

are u sure ?
the ode userguide says:

"To attach this joint to only one body, set body1 or body2 to zero - a zero body refers to the static environment."

hmm..but the next sentence in the userguide is:
"Some joints, like hinge-2 need to be attached to two bodies to work."

i'm not so sure anymore ... it's quite possible i tried that with hinge2.
Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #4 - Posted 2005-03-05 09:33:23 »

yes, hinge2 needs two bodies to work...

Try Ball or Hinge to see...I haven't had a chance yet, too busy doing a demo for GDC! I'l sit down with it soon...


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline holodri

Senior Newbie

Java games rock!

« Reply #5 - Posted 2005-03-06 16:33:27 »

ok.. i replaced the hinge2 with universal and attached them sucessfully to the static environment.

joint.attach(null, body);

it is running now, but the universals act more like fixedjoints .. doesnt move anymore...  :-/ ?
Offline holodri

Senior Newbie

Java games rock!

« Reply #6 - Posted 2005-03-06 19:47:49 »

Lips Sealed
omg .. i just didnt realize that my inverted pendulums were just in balance as soon as they got connected to the world.  Cheesy

now everything works fine, thx for help.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Coldstream24 (19 views)
2015-09-03 00:41:28

Andrew_3ds (31 views)
2015-09-01 19:08:10

afikri (20 views)
2015-08-31 09:30:22

afikri (27 views)
2015-08-31 09:30:07

afikri (15 views)
2015-08-31 09:27:24

afikri (17 views)
2015-08-31 09:26:40

Roquen (32 views)
2015-08-29 11:30:54

GamerC4 (41 views)
2015-08-22 20:38:50

GamerC4 (37 views)
2015-08-22 20:37:18

GamerC4 (43 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!