Half-life 2 And Gyroscopes

GreeGree Join Date: 2003-05-18 Member: 16454Members
<div class="IPBDescription">Something I discovered</div> A couple days ago I downloaded gary's mod for Half-life 2. In it you can attach spinning wheels and thrust generating cannisters to opjects. After a few hours of playing around I decieded to attach a spinning barrel to a high thrust cannister. To my amasement the barrel acted as a gycscope and stabalized the container.

Now I wonder if the programmers had intended for high rotaional speed opjects to act as a gyroscope or was this an accidental side effect of a well programed physics engine.

Comments

  • tuemmykidstuemmykids Join Date: 2003-09-15 Member: 20884Members
    My guess is that it's just the great physics engine. Have you looked at all the physics enties you can use? It's quite amazing.
  • NumbersNotFoundNumbersNotFound Join Date: 2002-11-07 Member: 7556Members
    The physics of a gyroscope is fairly odd... I forget how exactly it works, but it has to do with torques and such. Precession is another fun physical gag.


    As for the programming... From my experience there are two ways to approach a problem, high level and low level (also used in console emulation).

    Anyway, a high-level approach to physics would be to code in all the kinematics of objects (how fast things move, how they slow down, etc). A low level approach would be to code in the DYNAMICS. In other words, why things move the way they do. Making a universal set of heuristics for such a complex problem is difficult, and probably processor intensive. I'm sure in the early physics engines (like Max Payne2) things like this were impossible. Now, it seems that the methods have been refined quite a lot.
  • GwahirGwahir Join Date: 2002-04-24 Member: 513Members, Constellation
    max payne 2 used Havok 2

    HL2 used a greatly modified Havok 1 (I'm guessing they requested so many great modifications it effectively became havok 2 with some added stuff of their own)
  • antifreezeantifreeze The guy with the goods&#33; Join Date: 2003-05-12 Member: 16232Members, Constellation
    I thought HL2 used Havok2.
  • JimmehJimmeh Join Date: 2003-08-24 Member: 20173Members, Constellation
    <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    It does AFAIK.
  • TychoCelchuuuTychoCelchuuu Anememone Join Date: 2002-03-23 Member: 345Members
    <!--QuoteBegin-Jimmeh+Jan 21 2005, 03:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jimmeh @ Jan 21 2005, 03:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It does AFAIK. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    No, it doesn't and saying it does is spreading misinformation akin to propoganda. It uses a modified version of Havok 1.

    Sorry, I take it personally.
  • ThE_HeRoThE_HeRo Join Date: 2003-01-25 Member: 12723Members
    <!--QuoteBegin-TychoCelchuuu+Jan 21 2005, 06:32 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TychoCelchuuu @ Jan 21 2005, 06:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Jimmeh+Jan 21 2005, 03:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jimmeh @ Jan 21 2005, 03:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It does AFAIK. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No, it doesn't and saying it does is spreading misinformation akin to propoganda. It uses a modified version of Havok 1.

    Sorry, I take it personally. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    You need to go outside and explore.
  • TychoCelchuuuTychoCelchuuu Anememone Join Date: 2002-03-23 Member: 345Members
    <!--QuoteBegin-ThE HeRo+Jan 21 2005, 03:35 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ThE HeRo @ Jan 21 2005, 03:35 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-TychoCelchuuu+Jan 21 2005, 06:32 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TychoCelchuuu @ Jan 21 2005, 06:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Jimmeh+Jan 21 2005, 03:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jimmeh @ Jan 21 2005, 03:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It does AFAIK. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No, it doesn't and saying it does is spreading misinformation akin to propoganda. It uses a modified version of Havok 1.

    Sorry, I take it personally. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    You need to go outside and explore. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I did. All I found was hate and ignorance.

    Now I stay inside correcting people's misconceptions about physics engines in computer games. Much happier this way!
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    <!--QuoteBegin-TychoCelchuuu+Jan 22 2005, 12:32 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TychoCelchuuu @ Jan 22 2005, 12:32 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Jimmeh+Jan 21 2005, 03:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jimmeh @ Jan 21 2005, 03:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It does AFAIK. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No, it doesn't and saying it does is spreading misinformation akin to propoganda. It uses a modified version of Havok 1.

    Sorry, I take it personally. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I'm seeing the "HL is based on quake" "NO QUAKE2" argument all over again...
  • X_StickmanX_Stickman Not good enough for a custom title. Join Date: 2003-04-15 Member: 15533Members, Constellation
    <!--QuoteBegin-TychoCelchuuu+Jan 21 2005, 11:36 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TychoCelchuuu @ Jan 21 2005, 11:36 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-ThE HeRo+Jan 21 2005, 03:35 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ThE HeRo @ Jan 21 2005, 03:35 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-TychoCelchuuu+Jan 21 2005, 06:32 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TychoCelchuuu @ Jan 21 2005, 06:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Jimmeh+Jan 21 2005, 03:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jimmeh @ Jan 21 2005, 03:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-antifreeze+Jan 21 2005, 11:00 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (antifreeze @ Jan 21 2005, 11:00 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I thought HL2 used Havok2. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It does AFAIK. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No, it doesn't and saying it does is spreading misinformation akin to propoganda. It uses a modified version of Havok 1.

    Sorry, I take it personally. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    You need to go outside and explore. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I did. All I found was hate and ignorance.

    Now I stay inside correcting people's misconceptions about physics engines in computer games. Much happier this way! <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    And talking about Star Wars. Don't forget the star wars.

    On topic. Did you record a demo of it or something, or can you reproduce it? Can't play HL2 on this computer (yet...)
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    <!--QuoteBegin-Align+Jan 21 2005, 05:53 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Align @ Jan 21 2005, 05:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I'm seeing the "HL is based on quake" "NO QUAKE2" argument all over again... <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    No kidding.

    Time to choose on your side!

    I'll go with "Modified Havok 2" since it seems more atune to what Valve would do.
  • TychoCelchuuuTychoCelchuuu Anememone Join Date: 2002-03-23 Member: 345Members
    <!--QuoteBegin-DOOManiac+Jan 21 2005, 03:57 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DOOManiac @ Jan 21 2005, 03:57 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Align+Jan 21 2005, 05:53 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Align @ Jan 21 2005, 05:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I'm seeing the "HL is based on quake" "NO QUAKE2" argument all over again... <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No kidding.

    Time to choose on your side!

    I'll go with "Modified Havok 2" since it seems more atune to what Valve would do. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    No! NO! Wrooong! I feel forsaken!

    Valve started Source back when Havok 1 was all the rage. They would have to rewrite a bunch of it if they wanted to integrate with Havok 2 instead.
  • BelgarionBelgarion Join Date: 2002-07-19 Member: 973Members
    tycho has issues with physics engines. a strange no-name physics engine did naughty things to him when he was little <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused-fix.gif' border='0' style='vertical-align:middle' alt='confused-fix.gif' /><!--endemo-->
  • SurgeSurge asda4a3sklflkgh Join Date: 2002-07-14 Member: 944Members
    edited January 2005
    Issues that can be solved with a call to the Waaahmbulance, probably.
  • UnderDOGUnderDOG Join Date: 2003-04-05 Member: 15221Members
    Doesn’t it use their custom-made engine, source? Or is that something else, I thought that their "engine" included physics.
  • TychoCelchuuuTychoCelchuuu Anememone Join Date: 2002-03-23 Member: 345Members
    <!--QuoteBegin-UnderDOG+Jan 21 2005, 04:53 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (UnderDOG @ Jan 21 2005, 04:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Doesn’t it use their custom-made engine, source? Or is that something else, I thought that their "engine" included physics. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Mwah. Source is custom made but they can't write a whole physics thing on top of that. To that end they licensed Havok. Havok THE ORIGINAL.
  • CForresterCForrester P0rk(h0p Join Date: 2002-10-05 Member: 1439Members, Constellation
    <!--QuoteBegin-Belgarion+Jan 21 2005, 07:34 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Belgarion @ Jan 21 2005, 07:34 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> tycho has issues with physics engines. a strange no-name physics engine did naughty things to him when he was little <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused-fix.gif' border='0' style='vertical-align:middle' alt='confused-fix.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Yeah, the DOOM 3 physics engine molested me, too. <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
  • MouseMouse The Lighter Side of Pessimism Join Date: 2002-03-02 Member: 263Members, NS1 Playtester, Forum Moderators, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    from extensive counselling sessions, I've come to the conclusion that it was the Predator physics engine that molested Tycho.
Sign In or Register to comment.