⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    BallisticProjectileWithParticles MonoBehaviour

    Overview

    The BallisticProjectileWithParticles behaviour is a basic projectile that follows gravity. It will be given an ammo effect by the firearm that it uses when it impacts. This projectile uses a particle system to leave a bullet trail which is started a short distance after firing, and ended as soon as the projectile hits its target.

    Inspector

    BallisticProjectileWithParticles

    Properties

    Name Type Description
    Min Distance Float The minimum distance before the projectile will appear.
    Max Distance Float The maximum distance, after the projectile will disappear.
    Follow Curve Boolean Should the projectile rotate so it is always facing down the curve.
    Forget Ignore Root Boolean Forget the character's "ignore root", meaning it can detonate on the character collider.
    Query Trigger Colliders Boolean Should the shot be tested against trigger colliders.
    Instant Boolean This will cause the projectile logic to be calculated instantly on firing. This will be more responsive, but bullet trails, etc may start far ahead of the gun depending on muzzle speed. Works best in first person.
    Recycle Delay Float The time after the bullet hits an object before it is returned to the pool (allows trail renderers to complete).
    Particle Systems Particle System Array The particle systems to play.
    Particle Start Distance Float The distance the projectile must travel before it starts emitting particles.

    See Also

    Modular Firearms

    BallisticShooter

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX