[Edit Profile]  [Edit Your Preferences]  [Search]
[Private Messages[FAQ]  [Logout]
Genesis3D Forum Index -> World Editor -> my physicalsytem is falling down!!
Author my physicalsytem is falling down!!
Festy
Genesis God

Joined: Nov 09, 1998
Posts: 1426
From: Seattle, WA
Posted: 1999-07-12 13:52   
Obviously one of our glaring omissions is any help buttons for the Physics entities. I will see what I can do about getting them into the Gdemo source.

In the meantime, let me first post what I think is the likely solution for Brain's problem (and thank you for trying out the seemingly underused Physics!).
Joint Type: is either "World" (=0) or "Object" (=1)
You will want the joints that are not affected by gravity to be zero (world). So for a suspension bridge, the joints at each end of the bridge (where the first plank is tied to the cliff edge) would be set to zero for this field, whereas all the plank to plank joints are set to 1.

Also, make sure your Joint list chains and Object list chains do not loop. This means that your first object (defined in the PSystem) will point to the second and so on until the last, which points to nothing.


  View Profile of Festy   Goto the website of Festy      Edit/Delete This Post   Reply with quote
Grappleman
Veteran

Joined: Jul 02, 1999
Posts: 187
From: Plano, TX
Posted: 1999-07-12 14:03   
Oops, looks like Festy is on the ball...

A few things to keep in mind with physics stuff:

PHYSICS_JOINTS:

Joint entities have a TYPE field. The values can either be 0 or 1. If memory serves me correctly, 1 forces the joint to become RIGID at its assigned position. A value of 0 allows the joint to FALL freely and be affected by gravity or force entities. Make sure that whatever joints your object is supposed to hang from are assigned as RIGID. All others should be assigned as free fallers. ( brain, this is usually a common cause for your problem. )

A joint entity has 2 fields to specify physics objects that it is connected to. If you have a joint that connects two physics objects, you simply specify both objects in the 2 fields. It doesn't matter which is specified first. If you have a joint that connects a single physics object to a static part of your world, such as a chain link to a wooden post, you specify the physics object ( chain link ) in the first field and leave the second field set at NULL. Currently joints only have 2 fields to hook up physics objects. You can't connect a single joint to 3 or more physics objects. A situation like that would require connecting one joint to the first and second object, another joint connecting the second and third object, another joint connecting the third and fourth object, etc...

Each joint entity has a NEXT field that you use to create a consecutive list of joints.

Example- In the NEXT field for JOINT1 you would specify JOINT2. In the NEXT field for JOINT2 you would specify JOINT3. Keep linking joints in this fashion. The NEXT field for the last joint should remain NULL. DO NOT make the list circular. The list should be linear. It IS possible to link joints in any order as long as the list is linear, but I recommend linking in increasing order because they're easier to deal with.

PHYSICS_OBJECTS:

Like physics joints, physics object entities also have a NEXT field. Build your list of physics objects the same way.

Physics objects should be placed at their respective model's center of mass position. Placing the physics object entities at strange positions relative to their respective models can lead to weird/unstable motions at runtime.

A physics object entity has a single field that points to the model that relies on its center of mass position. Be sure to set this properly.

PHYSICAL_SYSTEMS:

The physical system entity contains 2 fields. One field points to the FIRST physics joint in the joint list you created above. The other field points to the FIRST physics object in the object list you created above.

Apologies in advance if you knew this already and if your physics problem is related to something else.

[This message has been edited by Grappleman (edited 07-12-99).]

[This message has been edited by Grappleman (edited 07-12-99).]

[This message has been edited by Grappleman (edited 07-15-99).]


  View Profile of Grappleman   Goto the website of Grappleman      Edit/Delete This Post   Reply with quote
Festy
Genesis God

Joined: Nov 09, 1998
Posts: 1426
From: Seattle, WA
Posted: 1999-07-12 16:51   
Yep, I've been learning from the fastest posters around, not the least of which is Quick Post McPost...

  View Profile of Festy   Goto the website of Festy      Edit/Delete This Post   Reply with quote
  
Lock this Topic Move this Topic Delete this Topic
Official Genesis3D Website

Powered by phpBB Version 1.4.0
Copyright © 2000 - 2001 The phpBB Group

Board Posting Rules
  1. Post your message once in the most appropriate topic. Do not post the same or similar messages in multiple topics. This is referred to as spamming the board and your duplicate messages will get deleted. Also any traditional spam such as the "Get Rich Quick", pyramid schemes, etc. will be deleted.
  2. Job ads go in the Unrelated forum only. Job ads found in any other topics will get deleted.
  3. Absolutely no warez or porn allowed.
  4. No trolls. Go back to the usenet where you belong.
  5. Bypassing the word filters will result in a banning. See this post for more information.
  6. All posts must be in English. See this post for more information.
phpBB Created this page in 0.135427 seconds.