Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ParticleSpawnTriggerCollision Class

    Namespace: Stride.Particles.Spawners
    Assembly: Stride.Particles.dll

    ParticleSpawnTriggerCollision triggers when the parent particle collides with a surface

    System.Object → ParticleSpawnTrigger → ParticleSpawnTrigger<ParticleCollisionAttribute> → ParticleSpawnTriggerCollision
    Derived from ParticleSpawnTriggerCollision:

    [DataContract("ParticleSpawnTriggerCollision")]
    [Display("On Hit", null)]
    public class ParticleSpawnTriggerCollision : ParticleSpawnTrigger<ParticleCollisionAttribute>
    Name Description
    Methods
    HasTriggered(Particle)
    PrepareFromPool(ParticlePool)
    | Improve this Doc View Source

    Methods


    HasTriggered(Particle)

    public override float HasTriggered(Particle parentParticle)
    Parameters
    Type Name Description
    Particle parentParticle
    Returns
    Type Description
    System.Single
    Overrides
    ParticleSpawnTrigger.HasTriggered(Particle)

    PrepareFromPool(ParticlePool)

    public override void PrepareFromPool(ParticlePool pool)
    Parameters
    Type Name Description
    ParticlePool pool
    Overrides
    ParticleSpawnTrigger.PrepareFromPool(ParticlePool)

    Inherited Members

    ParticleSpawnTrigger<ParticleCollisionAttribute>.FieldAccessor
    ParticleSpawnTrigger.AddRequiredParentFields(ParticleEmitter)
    ParticleSpawnTrigger.RemoveRequiredParentFields(ParticleEmitter)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation