Class SCNParticleSystem

    • Constructor Detail

      • SCNParticleSystem

        protected SCNParticleSystem​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • particleSystem

        public static SCNParticleSystem particleSystem()
        Create an instance of a particle system
      • particleSystemNamedInDirectory

        public static SCNParticleSystem particleSystemNamedInDirectory​(java.lang.String name,
                                                                       java.lang.String directory)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • acceleration

        public SCNVector3 acceleration()
        Specifies the acceleration applied to particles, in world coordinates. Allows to simulate winds or gravity. Defaults to {0, 0, 0}. Animatable.
      • addAnimationForKey

        public void addAnimationForKey​(SCNAnimation animation,
                                       java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported. The animation starts playing right away. The animation is automatically removed on completion unless if removedOnCompletion is explicitly set to NO.
        Specified by:
        addAnimationForKey in interface SCNAnimatable
        Parameters:
        animation - Added animation.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • addModifierForPropertiesAtStageWithBlock

        public void addModifierForPropertiesAtStageWithBlock​(NSArray<java.lang.String> properties,
                                                             long stage,
                                                             SCNParticleSystem.Block_addModifierForPropertiesAtStageWithBlock block)
        Modifications handling "block" will be invoked at every simulation step at the specified stage. The data and dataStride passed to the block will corresponds to the specified "properties".
      • affectedByGravity

        public boolean affectedByGravity()
        Enables the use of the gravity defined in SCNPhysicsWorld
      • affectedByPhysicsFields

        public boolean affectedByPhysicsFields()
        Enables the effect of the physics fields added to the SCNPhysicsWorld
      • animationForKey

        public CAAnimation animationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists. Attempting to modify any properties of the returned object will result in undefined behavior.
        Specified by:
        animationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to retrieve.
      • animationKeys

        public NSArray<java.lang.String> animationKeys()
        Description copied from interface: SCNAnimatable
        [@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.
        Specified by:
        animationKeys in interface SCNAnimatable
      • birthDirection

        public long birthDirection()
        Specifies the direction of newly created particles. Defaults to SCNParticleBirthDirectionConstant.
      • birthLocation

        public long birthLocation()
        Specifies the location of newly created particles. Defaults to SCNParticleBirthLocationSurface.
      • birthRate

        public double birthRate()
        Specifies the particle rate flow, in particles per emissionDuration. An emissionDuration of 0 without looping means that the particles are emitted instantaneously 0 means that the emitter emits nothing, unless it has variation. Defaults to 1. Animatable.
      • birthRateVariation

        public double birthRateVariation()
        Specifies the variation of the rate flow. Defaults to 0. Animatable.
      • blendMode

        public long blendMode()
        Specifies the blend mode to use to render the particle system. Defaults to SCNParticleBlendModeAdditive.
      • colliderNodes

        public NSArray<? extends SCNNode> colliderNodes()
        Specifies an array of SCNNode to collide with.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • dampingFactor

        public double dampingFactor()
        Specifies the particle air resistance. Defaults to 0. Animatable.
      • emissionDuration

        public double emissionDuration()
        Specifies the duration of the emission. Defaults to 1. Animatable.
      • emissionDurationVariation

        public double emissionDurationVariation()
        Specifies the variation of the emission duration. Defaults to 0. Animatable.
      • emitterShape

        public SCNGeometry emitterShape()
        Specifies the shape of the emitter. nil means a punctual emitter. Defaults to nil.
      • emittingDirection

        public SCNVector3 emittingDirection()
        Specifies the emitting direction of newly created particles, used in the SCNParticleBirthDirectionConstant mode. Defaults to {0, 0, 1}. Animatable.
      • fresnelExponent

        public double fresnelExponent()
        Specifies the receiver's fresnel exponent value. Defaults to 3. Animatable. Only used if the particleImage is a cube map. The bigger the amount, the more concentrated the reflection is around the edges
      • handleEventForPropertiesWithBlock

        public void handleEventForPropertiesWithBlock​(long event,
                                                      NSArray<java.lang.String> properties,
                                                      SCNParticleSystem.Block_handleEventForPropertiesWithBlock block)
        Events handling "block" will be invoked for particles that trigger the specified event, with the data and dataStride that corresponds to "properties". The block should only update the particle properties reference by the "indices" passed as argument in the block.
      • idleDuration

        public double idleDuration()
        Specifies the idle duration between two emissions. Defaults to 0. Animatable.
      • idleDurationVariation

        public double idleDurationVariation()
        Specifies the variation of the idle duration. Defaults to 0. Animatable.
      • imageSequenceAnimationMode

        public long imageSequenceAnimationMode()
        Specifies the texture animation mode. Defaults to SCNTextureAnimationModeRepeat.
      • imageSequenceColumnCount

        public long imageSequenceColumnCount()
        Specifies the number of column in the image sequence. Defaults to 1.
      • imageSequenceFrameRate

        public double imageSequenceFrameRate()
        Specifies the texture animation frame rate, in frames per second. Defaults to 0. Animatable.
      • imageSequenceFrameRateVariation

        public double imageSequenceFrameRateVariation()
        Specifies the texture animation frame rate variation, in frames per second. Defaults to 0. Animatable.
      • imageSequenceInitialFrame

        public double imageSequenceInitialFrame()
        Specifies the texture initial frame index. Ranges from 0 to (imageSequenceColumnCount * imageSequenceRowCount - 1). Defaults to 0. Animatable.
      • imageSequenceInitialFrameVariation

        public double imageSequenceInitialFrameVariation()
        Specifies the texture initial frame variation. Animatable.
      • imageSequenceRowCount

        public long imageSequenceRowCount()
        Specifies the number of row in the image sequence. Defaults to 1
      • isAnimationForKeyPaused

        public boolean isAnimationForKeyPaused​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.
        Specified by:
        isAnimationForKeyPaused in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to query.
      • isBlackPassEnabled

        public boolean isBlackPassEnabled()
        Specifies whether a black pass is required or not when rendering the particle system. This reinforces the contrast of additive/light systems. Defaults to NO.
      • setBlackPassEnabled

        public void setBlackPassEnabled​(boolean value)
        Specifies whether a black pass is required or not when rendering the particle system. This reinforces the contrast of additive/light systems. Defaults to NO.
      • isLightingEnabled

        public boolean isLightingEnabled()
        Enables the lighting of particle systems
      • setLightingEnabled

        public void setLightingEnabled​(boolean value)
        Enables the lighting of particle systems
      • isLocal

        public boolean isLocal()
        Specifies the rendering and simulation type of the system. If set to YES, the system is rendered with the transform of the attached node. Defaults to NO.
      • setLocal

        public void setLocal​(boolean value)
        Specifies the rendering and simulation type of the system. If set to YES, the system is rendered with the transform of the attached node. Defaults to NO.
      • loops

        public boolean loops()
        Specifies the looping behavior of the emission. Defaults to YES.
      • orientationMode

        public long orientationMode()
        Specifies the orientation mode of the particles. Defaults to SCNParticleOrientationModeBillboardScreenAligned.
      • particleAngle

        public double particleAngle()
        Specifies the initial angle of the particles at birth, in degrees. Defaults to 0. Animatable.
      • particleAngleVariation

        public double particleAngleVariation()
        Specifies the variation of the initial angle of the particles at birth, in degrees. Defaults to 0. Animatable.
      • particleAngularVelocity

        public double particleAngularVelocity()
        Specifies the initial angular velocity of the particles at birth, in degrees per second. Defaults to 0. Animatable.
      • particleAngularVelocityVariation

        public double particleAngularVelocityVariation()
        Specifies the variation of the angular velocity, in degrees per second. Defaults to 0. Animatable.
      • particleBounce

        public double particleBounce()
        Specifies the particle bounce. Animatable.
      • particleBounceVariation

        public double particleBounceVariation()
        Specifies the particle bounce variation. Animatable.
      • particleCharge

        public double particleCharge()
        Specifies the charge on the particle. Charge determines the degree to which a particle is affected by electric and magnetic fields. Note that this is a unitless quantity, it is up to the developer to set charge and field strength appropriately. Defaults to 0.0. Animatable.
      • particleChargeVariation

        public double particleChargeVariation()
        Specifies the particle charge variation. Animatable.
      • particleColor

        public UIColor particleColor()
        Specifies the initial color of the particle. Animatable. Defaults to opaque white.
      • particleColorVariation

        public SCNVector4 particleColorVariation()
        Specifies the normalized variation of the color. With x : hue variation, y : saturation variation, z : brightness variation, w : alpha variation. Animatable.
      • particleDiesOnCollision

        public boolean particleDiesOnCollision()
        Specifies whether particles die on collision
      • particleFriction

        public double particleFriction()
        Specifies the particle friction. Animatable.
      • particleFrictionVariation

        public double particleFrictionVariation()
        Specifies the particle friction variation. Animatable.
      • particleImage

        public java.lang.Object particleImage()
        Specifies the image of the particle. Can be set to an NSImage/UIImage, a path or a URL.
      • particleLifeSpan

        public double particleLifeSpan()
        Specifies the life span of particles. Animatable.
      • particleLifeSpanVariation

        public double particleLifeSpanVariation()
        Specifies the life span variation of particles. Animatable.
      • particleMass

        public double particleMass()
        Specifies the particle mass. Animatable.
      • particleMassVariation

        public double particleMassVariation()
        Specifies the particle mass variation. Animatable.
      • particleSize

        public double particleSize()
        Specifies the initial size of the particle. Animatable.
      • particleSizeVariation

        public double particleSizeVariation()
        Specifies the initial size variation of the particle. Animatable.
      • particleVelocity

        public double particleVelocity()
        Specifies the initial velocity of the particles at birth, in units per second. Defaults to 0. Animatable.
      • particleVelocityVariation

        public double particleVelocityVariation()
        Specifies the variation of the velocity. Defaults to 0. Animatable.
      • pauseAnimationForKey

        public void pauseAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        pauseAnimationForKey: Pause the animation with the given identifier.
        Specified by:
        pauseAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to pause.
      • removeAllModifiers

        public void removeAllModifiers()
      • removeAnimationForKey

        public void removeAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey Remove the animation with the given identifier.
        Specified by:
        removeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
      • removeAnimationForKeyFadeOutDuration

        public void removeAnimationForKeyFadeOutDuration​(java.lang.String key,
                                                         double duration)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyFadeOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The fade out duration used to remove the animation.
      • removeModifiersOfStage

        public void removeModifiersOfStage​(long stage)
      • reset

        public void reset()
        Remove all the already-emitted particles and restart the simulation.
      • resumeAnimationForKey

        public void resumeAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        resumeAnimationForKey: Resume the animation with the given identifier.
        Specified by:
        resumeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to resume.
      • setAcceleration

        public void setAcceleration​(SCNVector3 value)
        Specifies the acceleration applied to particles, in world coordinates. Allows to simulate winds or gravity. Defaults to {0, 0, 0}. Animatable.
      • setAffectedByGravity

        public void setAffectedByGravity​(boolean value)
        Enables the use of the gravity defined in SCNPhysicsWorld
      • setAffectedByPhysicsFields

        public void setAffectedByPhysicsFields​(boolean value)
        Enables the effect of the physics fields added to the SCNPhysicsWorld
      • setBirthDirection

        public void setBirthDirection​(long value)
        Specifies the direction of newly created particles. Defaults to SCNParticleBirthDirectionConstant.
      • setBirthLocation

        public void setBirthLocation​(long value)
        Specifies the location of newly created particles. Defaults to SCNParticleBirthLocationSurface.
      • setBirthRate

        public void setBirthRate​(double value)
        Specifies the particle rate flow, in particles per emissionDuration. An emissionDuration of 0 without looping means that the particles are emitted instantaneously 0 means that the emitter emits nothing, unless it has variation. Defaults to 1. Animatable.
      • setBirthRateVariation

        public void setBirthRateVariation​(double value)
        Specifies the variation of the rate flow. Defaults to 0. Animatable.
      • setBlendMode

        public void setBlendMode​(long value)
        Specifies the blend mode to use to render the particle system. Defaults to SCNParticleBlendModeAdditive.
      • setColliderNodes

        public void setColliderNodes​(NSArray<? extends SCNNode> value)
        Specifies an array of SCNNode to collide with.
      • setDampingFactor

        public void setDampingFactor​(double value)
        Specifies the particle air resistance. Defaults to 0. Animatable.
      • setEmissionDuration

        public void setEmissionDuration​(double value)
        Specifies the duration of the emission. Defaults to 1. Animatable.
      • setEmissionDurationVariation

        public void setEmissionDurationVariation​(double value)
        Specifies the variation of the emission duration. Defaults to 0. Animatable.
      • setEmitterShape

        public void setEmitterShape​(SCNGeometry value)
        Specifies the shape of the emitter. nil means a punctual emitter. Defaults to nil.
      • setEmittingDirection

        public void setEmittingDirection​(SCNVector3 value)
        Specifies the emitting direction of newly created particles, used in the SCNParticleBirthDirectionConstant mode. Defaults to {0, 0, 1}. Animatable.
      • setFresnelExponent

        public void setFresnelExponent​(double value)
        Specifies the receiver's fresnel exponent value. Defaults to 3. Animatable. Only used if the particleImage is a cube map. The bigger the amount, the more concentrated the reflection is around the edges
      • setIdleDuration

        public void setIdleDuration​(double value)
        Specifies the idle duration between two emissions. Defaults to 0. Animatable.
      • setIdleDurationVariation

        public void setIdleDurationVariation​(double value)
        Specifies the variation of the idle duration. Defaults to 0. Animatable.
      • setImageSequenceAnimationMode

        public void setImageSequenceAnimationMode​(long value)
        Specifies the texture animation mode. Defaults to SCNTextureAnimationModeRepeat.
      • setImageSequenceColumnCount

        public void setImageSequenceColumnCount​(long value)
        Specifies the number of column in the image sequence. Defaults to 1.
      • setImageSequenceFrameRate

        public void setImageSequenceFrameRate​(double value)
        Specifies the texture animation frame rate, in frames per second. Defaults to 0. Animatable.
      • setImageSequenceFrameRateVariation

        public void setImageSequenceFrameRateVariation​(double value)
        Specifies the texture animation frame rate variation, in frames per second. Defaults to 0. Animatable.
      • setImageSequenceInitialFrame

        public void setImageSequenceInitialFrame​(double value)
        Specifies the texture initial frame index. Ranges from 0 to (imageSequenceColumnCount * imageSequenceRowCount - 1). Defaults to 0. Animatable.
      • setImageSequenceInitialFrameVariation

        public void setImageSequenceInitialFrameVariation​(double value)
        Specifies the texture initial frame variation. Animatable.
      • setImageSequenceRowCount

        public void setImageSequenceRowCount​(long value)
        Specifies the number of row in the image sequence. Defaults to 1
      • setLoops

        public void setLoops​(boolean value)
        Specifies the looping behavior of the emission. Defaults to YES.
      • setOrientationMode

        public void setOrientationMode​(long value)
        Specifies the orientation mode of the particles. Defaults to SCNParticleOrientationModeBillboardScreenAligned.
      • setParticleAngle

        public void setParticleAngle​(double value)
        Specifies the initial angle of the particles at birth, in degrees. Defaults to 0. Animatable.
      • setParticleAngleVariation

        public void setParticleAngleVariation​(double value)
        Specifies the variation of the initial angle of the particles at birth, in degrees. Defaults to 0. Animatable.
      • setParticleAngularVelocity

        public void setParticleAngularVelocity​(double value)
        Specifies the initial angular velocity of the particles at birth, in degrees per second. Defaults to 0. Animatable.
      • setParticleAngularVelocityVariation

        public void setParticleAngularVelocityVariation​(double value)
        Specifies the variation of the angular velocity, in degrees per second. Defaults to 0. Animatable.
      • setParticleBounce

        public void setParticleBounce​(double value)
        Specifies the particle bounce. Animatable.
      • setParticleBounceVariation

        public void setParticleBounceVariation​(double value)
        Specifies the particle bounce variation. Animatable.
      • setParticleCharge

        public void setParticleCharge​(double value)
        Specifies the charge on the particle. Charge determines the degree to which a particle is affected by electric and magnetic fields. Note that this is a unitless quantity, it is up to the developer to set charge and field strength appropriately. Defaults to 0.0. Animatable.
      • setParticleChargeVariation

        public void setParticleChargeVariation​(double value)
        Specifies the particle charge variation. Animatable.
      • setParticleColor

        public void setParticleColor​(UIColor value)
        Specifies the initial color of the particle. Animatable. Defaults to opaque white.
      • setParticleColorVariation

        public void setParticleColorVariation​(SCNVector4 value)
        Specifies the normalized variation of the color. With x : hue variation, y : saturation variation, z : brightness variation, w : alpha variation. Animatable.
      • setParticleDiesOnCollision

        public void setParticleDiesOnCollision​(boolean value)
        Specifies whether particles die on collision
      • setParticleFriction

        public void setParticleFriction​(double value)
        Specifies the particle friction. Animatable.
      • setParticleFrictionVariation

        public void setParticleFrictionVariation​(double value)
        Specifies the particle friction variation. Animatable.
      • setParticleImage

        public void setParticleImage​(java.lang.Object value)
        Specifies the image of the particle. Can be set to an NSImage/UIImage, a path or a URL.
      • setParticleLifeSpan

        public void setParticleLifeSpan​(double value)
        Specifies the life span of particles. Animatable.
      • setParticleLifeSpanVariation

        public void setParticleLifeSpanVariation​(double value)
        Specifies the life span variation of particles. Animatable.
      • setParticleMass

        public void setParticleMass​(double value)
        Specifies the particle mass. Animatable.
      • setParticleMassVariation

        public void setParticleMassVariation​(double value)
        Specifies the particle mass variation. Animatable.
      • setParticleSize

        public void setParticleSize​(double value)
        Specifies the initial size of the particle. Animatable.
      • setParticleSizeVariation

        public void setParticleSizeVariation​(double value)
        Specifies the initial size variation of the particle. Animatable.
      • setParticleVelocity

        public void setParticleVelocity​(double value)
        Specifies the initial velocity of the particles at birth, in units per second. Defaults to 0. Animatable.
      • setParticleVelocityVariation

        public void setParticleVelocityVariation​(double value)
        Specifies the variation of the velocity. Defaults to 0. Animatable.
      • setSortingMode

        public void setSortingMode​(long value)
        Specifies the sorting mode of the particles. Defaults to SCNParticleSortingModeNone.
      • setSpeedForAnimationKey

        public void setSpeedForAnimationKey​(double speed,
                                            java.lang.String key)
        Description copied from interface: SCNAnimatable
        setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.
        Specified by:
        setSpeedForAnimationKey in interface SCNAnimatable
        Parameters:
        speed - The new speed of the animation.
        key - The identifier for the animation to update.
      • setSpeedFactor

        public void setSpeedFactor​(double value)
        Specifies the simulation speed multiplier. Defaults to 1. Animatable.
      • setSpreadingAngle

        public void setSpreadingAngle​(double value)
        Specifies the spreading direction of newly created particles, in degrees. Not used in SCNParticleBirthDirectionRandom. Defaults to 0. Animatable.
      • setStretchFactor

        public void setStretchFactor​(double value)
        Specifies whether particles stretch along their direction. Defaults to 0. Animatable.
      • setSystemSpawnedOnCollision

        public void setSystemSpawnedOnCollision​(SCNParticleSystem value)
        Specifies an optional system to spawn new particles when a particle dies
      • setSystemSpawnedOnDying

        public void setSystemSpawnedOnDying​(SCNParticleSystem value)
        Specifies an optional system to spawn new particles when a particle dies
      • setSystemSpawnedOnLiving

        public void setSystemSpawnedOnLiving​(SCNParticleSystem value)
        Specifies an optional system to spawn new particles when a particle is alive
      • setWarmupDuration

        public void setWarmupDuration​(double value)
        Specifies the time length during which particles are emit before the first rendering of the system. For example this allows to start a scene with snow that already has fallen. Defaults to 0. Animatable.
      • sortingMode

        public long sortingMode()
        Specifies the sorting mode of the particles. Defaults to SCNParticleSortingModeNone.
      • speedFactor

        public double speedFactor()
        Specifies the simulation speed multiplier. Defaults to 1. Animatable.
      • spreadingAngle

        public double spreadingAngle()
        Specifies the spreading direction of newly created particles, in degrees. Not used in SCNParticleBirthDirectionRandom. Defaults to 0. Animatable.
      • stretchFactor

        public double stretchFactor()
        Specifies whether particles stretch along their direction. Defaults to 0. Animatable.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • systemSpawnedOnCollision

        public SCNParticleSystem systemSpawnedOnCollision()
        Specifies an optional system to spawn new particles when a particle dies
      • systemSpawnedOnDying

        public SCNParticleSystem systemSpawnedOnDying()
        Specifies an optional system to spawn new particles when a particle dies
      • systemSpawnedOnLiving

        public SCNParticleSystem systemSpawnedOnLiving()
        Specifies an optional system to spawn new particles when a particle is alive
      • warmupDuration

        public double warmupDuration()
        Specifies the time length during which particles are emit before the first rendering of the system. For example this allows to start a scene with snow that already has fallen. Defaults to 0. Animatable.
      • addAnimationPlayerForKey

        public void addAnimationPlayerForKey​(SCNAnimationPlayer player,
                                             java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimationPlayer:forKey: Add an animation player. The animation player is not removed automatically on completion. The animation doesn't start playing immediatelly. Call "play" on the player to start playing it.
        Specified by:
        addAnimationPlayerForKey in interface SCNAnimatable
        Parameters:
        player - Added animation player.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • animationPlayerForKey

        public SCNAnimationPlayer animationPlayerForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.
        Specified by:
        animationPlayerForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation player to retrieve.
      • orientationDirection

        public SCNVector3 orientationDirection()
        Specifies the orientation direction of newly created particles, used in the SCNParticleOrientationModeFree mode. The particle will rotate around this axis. Defaults to {0, 0, 0}, which means random. The particle will then rotate arbitraly. Animatable.
      • particleIntensity

        public double particleIntensity()
        Specifies the initial intensity of the particle. Animatable.
      • particleIntensityVariation

        public double particleIntensityVariation()
        Specifies the initial intensity variation of the particle. Animatable.
      • removeAnimationForKeyBlendOutDuration

        public void removeAnimationForKeyBlendOutDuration​(java.lang.String key,
                                                          double duration)
        Description copied from interface: SCNAnimatable
        Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyBlendOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The blend out duration used to remove the animation.
      • setOrientationDirection

        public void setOrientationDirection​(SCNVector3 value)
        Specifies the orientation direction of newly created particles, used in the SCNParticleOrientationModeFree mode. The particle will rotate around this axis. Defaults to {0, 0, 0}, which means random. The particle will then rotate arbitraly. Animatable.
      • setParticleIntensity

        public void setParticleIntensity​(double value)
        Specifies the initial intensity of the particle. Animatable.
      • setParticleIntensityVariation

        public void setParticleIntensityVariation​(double value)
        Specifies the initial intensity variation of the particle. Animatable.