Search Unity

True bullet, a super realistic bullet trajectory script

Discussion in 'Assets and Asset Store' started by Kavorka, Jul 31, 2015.

  1. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    True bullet makes a realistic gun out of any transform. The bullet trajectory is governed by solving the differential equations of ballistic flight. The ballistic data is shown on screen. Data includes: wind drift, Coriolis drift, velocity at impact, total bullet drop from sighting line. time of flight, distance to hit, and lead. You enter information about the bullet's air drag coefficient, mass, diameter, and initial speed. Environmental parameters are: Wind velocity, latitude, hours per day (planet revolution), air density, and gravity.

    www.kavorka-racing.com/download-demos.html





     
    Last edited: Nov 16, 2022
  2. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Interesting, bit pricey though.
    Can this be used to correlate to real world data.
    For example if I have a large caliber weapon that fits 5" rounds that has an initial muzzle velocity of 760mps that is firing on a target that is 17650meters distant.
    At that range it takes the round 67sec to hit and elevation of gun barrel would be 45deg.
    Would your system match the above real world data for this particular rounds trajectories?
     
  3. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    Hello John, sorry for the late response. I had not enable email notification.
    I fired off a 5", 25 kg, 0.22 air resistance coefficient at 760 m/s and 45 degrees.
    It landed after 70 seconds at 17500 meters.
    Projectiles like that reach an altitude where the air density is no longer constant. In the 1.03 version I will have added altitude density corrections and also velocity dependent air resistance coefficient.
     
    John-G likes this.
  4. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Nice that's spot on, will pick this up at some stage. The madness sale has taken care of this month's available funds :rolleyes:
     
  5. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Bullet speed does not appear to be working in the web demo?
     
  6. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    Thanks for telling me. I uploaded a fixed web player.
    I have submitted version 1.03 to the asset store.
     
  7. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    If Debdoot Das, or someone in contact with him reads this.
    Your mail is not working! I fixed your feature request within an hour, and sent a complete project.
    But your replies indicate that, you have got none of my emails (from two different addresses), or the message I sent from the contact form on your home page.
     
    Last edited: Oct 9, 2015
  8. ksx_kshan

    ksx_kshan

    Joined:
    Aug 28, 2014
    Posts:
    3
    Does anyone have a good suggestion for setting up object penetration with this? I'd like to simulate velocity lost due to penetrating walls or other objects.
     
    killer1171090 likes this.
  9. local306

    local306

    Joined:
    Feb 28, 2016
    Posts:
    155
    @Kavorka is this asset still current, as in, will it work with Unity 2018+?
     
  10. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    I don't know. My guess is yes. I'll try it tomorrow.
     
  11. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247
    It seems alright in Unity 2019.
     
    local306 likes this.
  12. Kavorka

    Kavorka

    Joined:
    Sep 15, 2012
    Posts:
    247