Profile image

A couple of revelations about cannons in SP

66.7k SnoWFLakE0s  4.4 years ago
  1. The cannon projectiles don't have any drag. They do not follow a standard drag model- instead they follow a parabolic trajectory.

  1. The cannon projectile diameter also does not affect drag at all, further providing the case for no drag on the projectiles.

  2. The cannon projectile shape also does not affect the drag. (Slug v. Sphere - IRL this makes quite the difference, but not in SP.)

  3. Cannon projectiles DO have mass. This can be seen by the fact that when weighing them on a spring scale they do affect it, and smaller diameter shells definitely weigh less than bigger ones (although I have yet to figure out the exact density of the projectiles). Here's a pile of shell:

  1. As with any other projectile-type weapons, cannon projectiles do have a certain "trigger" velocity for their fuzes.

  2. The muzzle flash effect applies only when the shell passes out of the barrel, for some reason... If the shell has a low enough velocity such that it just plops out of the cannon, the muzzle flash doesn't seem to show.


If you're not huge into XML, this information won't be of much importance to you... but for me at least, points 1, 2, 3, and 4 all have pretty big implications for an FCS system and some other physics calculations stuff. Very cool. I'm just putting this out there in the hopes that this helps someone out.

  • SnoWFLakE0s
  • Log in to leave a comment
  • Profile image

    i wish i can totally hide the projectile during the game.
    so i can make it tracer only and looking like a turbo laser

    1.5 years ago
  • Profile image
    34.8k WarHawk95

    So, how do we make a weapon multirole ?

    4.3 years ago
  • Profile image

    Wow this is heaps cool I never woulda though to check this, maybe if it’s too slow there’s no “propellant” to give a flash??

    4.4 years ago
  • Profile image

    You can make mines

    4.4 years ago
  • Profile image
    4,602 TheMaus

    You are that one nerd in class everyone likes.

    +7 4.4 years ago
  • Profile image
    66.7k SnoWFLakE0s

    @typeZERO
    .
    Answers (respectively):
    Yes, infinity (attribute in XML)
    Not yet
    Untested
    No
    Yes

    +1 4.4 years ago
  • Profile image
    17.7k typeZERO

    Questions:

    • Can You Recode the MuzzleVelocity of the Bullets?
      if yes, what is the maximum?

    • Can you Remove the Muzzle Flash of the Cannon?

    • if Cannon MassScale="0", does the Bullet also gets affected by the Recode?

    • Does the Caliber of the Bullet Affect the Damage inflicted to Target?

    • Can you recode the function of the Cannon like [ function="AirToAir" ]

    +2 4.4 years ago
  • Profile image
    55.3k Beefy

    Interesting study

    +2 4.4 years ago
  • Profile image

    I found a bug with the sphere round if you shorten the barrel and decrease the volicity and increase dimiter of the round it hits the block connecting the cannon

    4.4 years ago