Results 1 to 5 of 5

Thread: Calculation of the time to collision.

  1. #1
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts

    Calculation of the time to collision.

    Hey, i have car, i would like calculate of the time to collision car with wall.
    I tried to use vector but i don't know how do it this calculation.
    I mean computing time to collision when the car is in motion :P

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    if(ismoving) do bulletrace from angels of car to rest. distance check etc etc

  3. #3
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Hey, i have car, i would like calculate of the time to collision car with wall.
    Then just do it!
    I tried to use vector but i don't know how do it this calculation.
    ...
    I mean computing time to collision when the car is in motion :P
    Well, if its not in motion then there will probably no collision...



    Okay... CoD2 is a 9 year old game and since the first days there are quadrillions of public available mods out there. Why is noone able to just download and have a 10mins look at them?!
    Also there were another quadrillion of tutorials and 'How-do-I-do-a-post'-threads! (Not to mention the multifantastillion of physics-threads on wikipedia on a simple speed calculation, teached by every 5th grade teacher)
    But instead ever since there are community places to ask (all kind *cough*) of questions, there are also ones posted in the way ive complained above.

    Okay, now just THINK!

    you've known this since ages: [voodoo]SPEED = DISTANCE / TIME[/voodoo] wth...
    Last edited by serthy; 30th January 2014 at 23:12.

  4. The Following User Says Thank You to serthy For This Useful Post:

    IzNoGoD (31st January 2014)

  5. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts

  6. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    When it's so easy, then why make such a hassle out of a question? I guess respected others is teached in the Kindergarten ^^

    Serthy published his tank mod here: http://killtube.org/showthread.php?1...OAD-COD2-TANKs

    It's a stand alone mod, so you don't need to fizzle with loose scripts around and you can just fit the variables to fit your vehicle type, then port it over into your mod (don't forget credits ofc)
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •