Jump to content
The Dark Mod Forums

Is it possible to make a seesaw in TDM?


Jesps

Recommended Posts

What I basicly want is a simple seesaw like the one in the picture. Simply just a board with an axis in the center so that if a heavy object is being placed on one end, that end will move down and the other end up.

post-2221-1228554392_thumb.jpg

Is it possible to build something like that for The Dark Mod?

 

Thanks in advance.

Link to comment
Share on other sites

Doom3 physics can't really handle a seesaw in general. It's only calculating impulses from collisions, not force dynamics. So if you set a very heavy weight down very slowly on the end of a seesaw, it won't tip it down once it's released. It doesn't know about the weight force of the object.

 

I've been wondering if we should try to set up a special entity to fake this, one that checks what entities are touching it and what entities are touching those entities, etc, to get the total weight force on it, and then that calculated weight could be used in various ways to fake something like a seesaw or pressure plate.

Link to comment
Share on other sites

Doom3 physics can't really handle a seesaw in general. It's only calculating impulses from collisions, not force dynamics. So if you set a very heavy weight down very slowly on the end of a seesaw, it won't tip it down once it's released. It doesn't know about the weight force of the object.

 

I've been wondering if we should try to set up a special entity to fake this, one that checks what entities are touching it and what entities are touching those entities, etc, to get the total weight force on it, and then that calculated weight could be used in various ways to fake something like a seesaw or pressure plate.

 

My idea was to just fix the code that calculates the force to take the weight into account. Afterall, the code knows when objects collide (when you set something down), so it could take the weight into account.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I'm sorry but that sounds like a gross oversimplification of what would actually be involved. We already know that contact locations are not always calculated correctly by D3 physics, and that would be critical to a dynamics simulation (i.e., is this board that's touching object A resting part of its weight on something else, what points/surfaces is it making contact over and how is its weight distributed among the multiple objects it's touching, etc etc). You'd also need some system to optimize when the weight force is calculated, probably having to do with what the object is touching and whether any of the touched objects can move under the total weight applied to them. When all is said and done, it's about as easy as importing an entirely new physics engine.

 

I would be very happy if you proved me wrong, but it seems like a daunting task.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 0 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...