+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Math help

  1. #1
    Wire Noob Crimson's Avatar
    Join Date
    Feb 2007
    Posts
    17

    Default

    I'm looking to build an artillery piece, but I've had a hard time finding the right equation for the job. Can someone help me out here? I'm trying not to use a tutorial. I think the equation has somthing to do with parametrics?

  2. #2
    Wirererer Nophysicalbody's Avatar
    Join Date
    Mar 2007
    Location
    Australia, Melbourne
    Posts
    261

    Default

    I'm looking to build an artillery piece, but I've had a hard time finding the right equation for the job. Can someone help me out here? I'm trying not to use a tutorial. I think the equation has somthing to do with parametrics?[/b]
    seriously, I have no idea :'(
    sounds fun though!
    Is currently not dead.

  3. #3
    Wire Amateur Razara's Avatar
    Join Date
    Feb 2007
    Location
    Michigan, USA
    Posts
    64

    Default

    if you tell me what you want your inputs to be and your outputs i can give you the equations. the biggest problem i've found with artillery though is finding a consistent initial velocity, which is vital for artillery.

  4. #4
    Wire Noob Crimson's Avatar
    Join Date
    Feb 2007
    Posts
    17

    Default

    The equation that i've found so far is s(t)=-16t^2+vo(t)+so. Any ideas how to implement that into wires. I have no programming knowledge so i cant use a cpu or expsresision gate.

  5. #5
    Wirererer Infinity's Avatar
    Join Date
    Mar 2007
    Posts
    274

    Default

    Slap on some dynamite and let the Havok engine let it do it for you.

    All joking aside, do you wish to set the artillery shell to a specific coordinate or what?
    Many aspects of Garry's Mod are hardly the pinnical of realisim.

  6. #6
    Wire Amateur Neotracer's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    75

    Default

    The equation that i've found so far is s(t)=-16t^2+vo(t)+so. Any ideas how to implement that into wires. I have no programming knowledge so i cant use a cpu or expsresision gate.[/b]
    ther did you found? this wat is S, T, SO and VO?
    dont know if you can simple use a reallife equation in gmod

    it is easy to make a expression gate that calculates this but need to know if SO and VO can be calculatet or are
    they simple parameters. are s andt t 3d coords? [S(X|Y|Z)] i guess yes.
    Es gibt genau 10 Typen von Menschen auf der Welt. Welche die Binär verstehen und Welche die nicht.
    (german)
    STOP USING BMP FILES! USE JPEG FOR YOUR SAKE!!

  7. #7
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    You can use this formula that calculates the ange for a balistic trajectory which can be done with normal gates
    PS formula made by Pariah not me

    Theta = (1/2) * Asin((g*d)/(v^2))

    Where:
    Theta = Your optimum angle
    g = Strength of gravity(in negitive value like on gm_flatgrass it is something like -32)
    d = Distance to target
    v = Velocity of the projectile as it leaves the barrel (normally found by trial and error(larger value make the impacts move towards cannon and smaller ones move the impact away from the cannon))
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  8. #8
    Wirererer Qjet's Avatar
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    319

    Default

    these formulas don't account for the air friction barrels experiance in GMOD. Those right there are parabolic curves which BTW unless the barrel is 9999999 weight, it won't fly that path.

    realisticly the actual formula is going to look like a SQRT graph for force, a skewed curve for theta. and the coeffecients and values for everything will have to be determined through trial and error

  9. #9
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    sorry i didnt know that the equation didnt account for air resistance although it does work with malwar cannons as their projectiles fire in perfect parabolas
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  10. #10
    Wire Noob Crimson's Avatar
    Join Date
    Feb 2007
    Posts
    17

    Default

    thanks alot for the help.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. My Math Is Epic
    By Inzuki in forum Wiremod General Chat
    Replies: 24
    Last Post: 10-19-2008, 09:22 AM
  2. Making a exprssion math into cpu math
    By Ronin in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 5
    Last Post: 06-03-2008, 07:09 PM
  3. help with the math of a spring
    By sexiewasd in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 03-09-2008, 04:02 AM
  4. some math help
    By nanotech fur in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 10-07-2007, 06:45 AM
  5. Math Help and How-Tos
    By bprater in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 05-21-2007, 05:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots