Package apple.scenekit
Class SCNParticleSystem
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNParticleSystem
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject,SCNAnimatable
public class SCNParticleSystem extends NSObject implements NSCopying, NSSecureCoding, SCNAnimatable
SCNParticleSystem The SCNParticleSystem class represents a system of particles.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSCNParticleSystem.Block_addModifierForPropertiesAtStageWithBlockstatic interfaceSCNParticleSystem.Block_handleEventForPropertiesWithBlock-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNParticleSystem(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.SCNVector3acceleration()Specifies the acceleration applied to particles, in world coordinates.static booleanaccessInstanceVariablesDirectly()voidaddAnimationForKey(SCNAnimation animation, java.lang.String key)addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported.voidaddAnimationPlayerForKey(SCNAnimationPlayer player, java.lang.String key)addAnimationPlayer:forKey: Add an animation player.voidaddModifierForPropertiesAtStageWithBlock(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.booleanaffectedByGravity()Enables the use of the gravity defined in SCNPhysicsWorldbooleanaffectedByPhysicsFields()Enables the effect of the physics fields added to the SCNPhysicsWorldstatic SCNParticleSystemalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)CAAnimationanimationForKey(java.lang.String key)animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists.NSArray<java.lang.String>animationKeys()[@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.SCNAnimationPlayeranimationPlayerForKey(java.lang.String key)animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)longbirthDirection()Specifies the direction of newly created particles.longbirthLocation()Specifies the location of newly created particles.doublebirthRate()Specifies the particle rate flow, in particles per emissionDuration.doublebirthRateVariation()Specifies the variation of the rate flow.longblendMode()Specifies the blend mode to use to render the particle system.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()NSArray<? extends SCNNode>colliderNodes()Specifies an array of SCNNode to collide with.java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)doubledampingFactor()Specifies the particle air resistance.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()doubleemissionDuration()Specifies the duration of the emission.doubleemissionDurationVariation()Specifies the variation of the emission duration.SCNGeometryemitterShape()Specifies the shape of the emitter. nil means a punctual emitter.SCNVector3emittingDirection()Specifies the emitting direction of newly created particles, used in the SCNParticleBirthDirectionConstant mode.voidencodeWithCoder(NSCoder coder)doublefresnelExponent()Specifies the receiver's fresnel exponent value.voidhandleEventForPropertiesWithBlock(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".static longhash_static()doubleidleDuration()Specifies the idle duration between two emissions.doubleidleDurationVariation()Specifies the variation of the idle duration.longimageSequenceAnimationMode()Specifies the texture animation mode.longimageSequenceColumnCount()Specifies the number of column in the image sequence.doubleimageSequenceFrameRate()Specifies the texture animation frame rate, in frames per second.doubleimageSequenceFrameRateVariation()Specifies the texture animation frame rate variation, in frames per second.doubleimageSequenceInitialFrame()Specifies the texture initial frame index.doubleimageSequenceInitialFrameVariation()Specifies the texture initial frame variation.longimageSequenceRowCount()Specifies the number of row in the image sequence.SCNParticleSysteminit()SCNParticleSysteminitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAnimationForKeyPaused(java.lang.String key)isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.booleanisBlackPassEnabled()Specifies whether a black pass is required or not when rendering the particle system.booleanisLightingEnabled()Enables the lighting of particle systemsbooleanisLocal()Specifies the rendering and simulation type of the system.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)booleanloops()Specifies the looping behavior of the emission.static java.lang.Objectnew_objc()SCNVector3orientationDirection()Specifies the orientation direction of newly created particles, used in the SCNParticleOrientationModeFree mode.longorientationMode()Specifies the orientation mode of the particles.doubleparticleAngle()Specifies the initial angle of the particles at birth, in degrees.doubleparticleAngleVariation()Specifies the variation of the initial angle of the particles at birth, in degrees.doubleparticleAngularVelocity()Specifies the initial angular velocity of the particles at birth, in degrees per second.doubleparticleAngularVelocityVariation()Specifies the variation of the angular velocity, in degrees per second.doubleparticleBounce()Specifies the particle bounce.doubleparticleBounceVariation()Specifies the particle bounce variation.doubleparticleCharge()Specifies the charge on the particle.doubleparticleChargeVariation()Specifies the particle charge variation.UIColorparticleColor()Specifies the initial color of the particle.SCNVector4particleColorVariation()Specifies the normalized variation of the color.booleanparticleDiesOnCollision()Specifies whether particles die on collisiondoubleparticleFriction()Specifies the particle friction.doubleparticleFrictionVariation()Specifies the particle friction variation.java.lang.ObjectparticleImage()Specifies the image of the particle.doubleparticleIntensity()Specifies the initial intensity of the particle.doubleparticleIntensityVariation()Specifies the initial intensity variation of the particle.doubleparticleLifeSpan()Specifies the life span of particles.doubleparticleLifeSpanVariation()Specifies the life span variation of particles.doubleparticleMass()Specifies the particle mass.doubleparticleMassVariation()Specifies the particle mass variation.doubleparticleSize()Specifies the initial size of the particle.doubleparticleSizeVariation()Specifies the initial size variation of the particle.static SCNParticleSystemparticleSystem()Create an instance of a particle systemstatic SCNParticleSystemparticleSystemNamedInDirectory(java.lang.String name, java.lang.String directory)doubleparticleVelocity()Specifies the initial velocity of the particles at birth, in units per second.doubleparticleVelocityVariation()Specifies the variation of the velocity.voidpauseAnimationForKey(java.lang.String key)pauseAnimationForKey: Pause the animation with the given identifier.NSDictionary<java.lang.String,? extends SCNParticlePropertyController>propertyControllers()Property controllers.voidremoveAllAnimations()removeAllAnimations Remove all animations.voidremoveAllModifiers()voidremoveAnimationForKey(java.lang.String key)removeAnimationForKey Remove the animation with the given identifier.voidremoveAnimationForKeyBlendOutDuration(java.lang.String key, double duration)Smoothly remove the animation with the given identifier.voidremoveAnimationForKeyFadeOutDuration(java.lang.String key, double duration)removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.voidremoveModifiersOfStage(long stage)voidreset()Remove all the already-emitted particles and restart the simulation.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidresumeAnimationForKey(java.lang.String key)resumeAnimationForKey: Resume the animation with the given identifier.voidsetAcceleration(SCNVector3 value)Specifies the acceleration applied to particles, in world coordinates.voidsetAffectedByGravity(boolean value)Enables the use of the gravity defined in SCNPhysicsWorldvoidsetAffectedByPhysicsFields(boolean value)Enables the effect of the physics fields added to the SCNPhysicsWorldvoidsetBirthDirection(long value)Specifies the direction of newly created particles.voidsetBirthLocation(long value)Specifies the location of newly created particles.voidsetBirthRate(double value)Specifies the particle rate flow, in particles per emissionDuration.voidsetBirthRateVariation(double value)Specifies the variation of the rate flow.voidsetBlackPassEnabled(boolean value)Specifies whether a black pass is required or not when rendering the particle system.voidsetBlendMode(long value)Specifies the blend mode to use to render the particle system.voidsetColliderNodes(NSArray<? extends SCNNode> value)Specifies an array of SCNNode to collide with.voidsetDampingFactor(double value)Specifies the particle air resistance.voidsetEmissionDuration(double value)Specifies the duration of the emission.voidsetEmissionDurationVariation(double value)Specifies the variation of the emission duration.voidsetEmitterShape(SCNGeometry value)Specifies the shape of the emitter. nil means a punctual emitter.voidsetEmittingDirection(SCNVector3 value)Specifies the emitting direction of newly created particles, used in the SCNParticleBirthDirectionConstant mode.voidsetFresnelExponent(double value)Specifies the receiver's fresnel exponent value.voidsetIdleDuration(double value)Specifies the idle duration between two emissions.voidsetIdleDurationVariation(double value)Specifies the variation of the idle duration.voidsetImageSequenceAnimationMode(long value)Specifies the texture animation mode.voidsetImageSequenceColumnCount(long value)Specifies the number of column in the image sequence.voidsetImageSequenceFrameRate(double value)Specifies the texture animation frame rate, in frames per second.voidsetImageSequenceFrameRateVariation(double value)Specifies the texture animation frame rate variation, in frames per second.voidsetImageSequenceInitialFrame(double value)Specifies the texture initial frame index.voidsetImageSequenceInitialFrameVariation(double value)Specifies the texture initial frame variation.voidsetImageSequenceRowCount(long value)Specifies the number of row in the image sequence.voidsetLightingEnabled(boolean value)Enables the lighting of particle systemsvoidsetLocal(boolean value)Specifies the rendering and simulation type of the system.voidsetLoops(boolean value)Specifies the looping behavior of the emission.voidsetOrientationDirection(SCNVector3 value)Specifies the orientation direction of newly created particles, used in the SCNParticleOrientationModeFree mode.voidsetOrientationMode(long value)Specifies the orientation mode of the particles.voidsetParticleAngle(double value)Specifies the initial angle of the particles at birth, in degrees.voidsetParticleAngleVariation(double value)Specifies the variation of the initial angle of the particles at birth, in degrees.voidsetParticleAngularVelocity(double value)Specifies the initial angular velocity of the particles at birth, in degrees per second.voidsetParticleAngularVelocityVariation(double value)Specifies the variation of the angular velocity, in degrees per second.voidsetParticleBounce(double value)Specifies the particle bounce.voidsetParticleBounceVariation(double value)Specifies the particle bounce variation.voidsetParticleCharge(double value)Specifies the charge on the particle.voidsetParticleChargeVariation(double value)Specifies the particle charge variation.voidsetParticleColor(UIColor value)Specifies the initial color of the particle.voidsetParticleColorVariation(SCNVector4 value)Specifies the normalized variation of the color.voidsetParticleDiesOnCollision(boolean value)Specifies whether particles die on collisionvoidsetParticleFriction(double value)Specifies the particle friction.voidsetParticleFrictionVariation(double value)Specifies the particle friction variation.voidsetParticleImage(java.lang.Object value)Specifies the image of the particle.voidsetParticleIntensity(double value)Specifies the initial intensity of the particle.voidsetParticleIntensityVariation(double value)Specifies the initial intensity variation of the particle.voidsetParticleLifeSpan(double value)Specifies the life span of particles.voidsetParticleLifeSpanVariation(double value)Specifies the life span variation of particles.voidsetParticleMass(double value)Specifies the particle mass.voidsetParticleMassVariation(double value)Specifies the particle mass variation.voidsetParticleSize(double value)Specifies the initial size of the particle.voidsetParticleSizeVariation(double value)Specifies the initial size variation of the particle.voidsetParticleVelocity(double value)Specifies the initial velocity of the particles at birth, in units per second.voidsetParticleVelocityVariation(double value)Specifies the variation of the velocity.voidsetPropertyControllers(NSDictionary<java.lang.String,? extends SCNParticlePropertyController> value)Property controllers.voidsetSortingMode(long value)Specifies the sorting mode of the particles.voidsetSpeedFactor(double value)Specifies the simulation speed multiplier.voidsetSpeedForAnimationKey(double speed, java.lang.String key)setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.voidsetSpreadingAngle(double value)Specifies the spreading direction of newly created particles, in degrees.voidsetStretchFactor(double value)Specifies whether particles stretch along their direction.voidsetSystemSpawnedOnCollision(SCNParticleSystem value)Specifies an optional system to spawn new particles when a particle diesvoidsetSystemSpawnedOnDying(SCNParticleSystem value)Specifies an optional system to spawn new particles when a particle diesvoidsetSystemSpawnedOnLiving(SCNParticleSystem value)Specifies an optional system to spawn new particles when a particle is alivestatic voidsetVersion_static(long aVersion)voidsetWarmupDuration(double value)Specifies the time length during which particles are emit before the first rendering of the system.longsortingMode()Specifies the sorting mode of the particles.doublespeedFactor()Specifies the simulation speed multiplier.doublespreadingAngle()Specifies the spreading direction of newly created particles, in degrees.doublestretchFactor()Specifies whether particles stretch along their direction.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()SCNParticleSystemsystemSpawnedOnCollision()Specifies an optional system to spawn new particles when a particle diesSCNParticleSystemsystemSpawnedOnDying()Specifies an optional system to spawn new particles when a particle diesSCNParticleSystemsystemSpawnedOnLiving()Specifies an optional system to spawn new particles when a particle is alivestatic longversion_static()doublewarmupDuration()Specifies the time length during which particles are emit before the first rendering of the system.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNParticleSystem alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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:SCNAnimatableaddAnimation: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:
addAnimationForKeyin interfaceSCNAnimatable- 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:SCNAnimatableanimationForKey: 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:
animationForKeyin interfaceSCNAnimatable- 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:
animationKeysin interfaceSCNAnimatable
-
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:
copyWithZonein interfaceNSCopying
-
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.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
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
-
init
public SCNParticleSystem init()
-
initWithCoder
public SCNParticleSystem initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
isAnimationForKeyPaused
public boolean isAnimationForKeyPaused(java.lang.String key)
Description copied from interface:SCNAnimatableisAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.- Specified by:
isAnimationForKeyPausedin interfaceSCNAnimatable- 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:SCNAnimatablepauseAnimationForKey: Pause the animation with the given identifier.- Specified by:
pauseAnimationForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to pause.
-
propertyControllers
public NSDictionary<java.lang.String,? extends SCNParticlePropertyController> propertyControllers()
Property controllers.
-
removeAllAnimations
public void removeAllAnimations()
Description copied from interface:SCNAnimatableremoveAllAnimations Remove all animations.- Specified by:
removeAllAnimationsin interfaceSCNAnimatable
-
removeAllModifiers
public void removeAllModifiers()
-
removeAnimationForKey
public void removeAnimationForKey(java.lang.String key)
Description copied from interface:SCNAnimatableremoveAnimationForKey Remove the animation with the given identifier.- Specified by:
removeAnimationForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to remove.
-
removeAnimationForKeyFadeOutDuration
public void removeAnimationForKeyFadeOutDuration(java.lang.String key, double duration)Description copied from interface:SCNAnimatableremoveAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.- Specified by:
removeAnimationForKeyFadeOutDurationin interfaceSCNAnimatable- 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:SCNAnimatableresumeAnimationForKey: Resume the animation with the given identifier.- Specified by:
resumeAnimationForKeyin interfaceSCNAnimatable- 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.
-
setPropertyControllers
public void setPropertyControllers(NSDictionary<java.lang.String,? extends SCNParticlePropertyController> value)
Property controllers.
-
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:SCNAnimatablesetSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.- Specified by:
setSpeedForAnimationKeyin interfaceSCNAnimatable- 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:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
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:SCNAnimatableaddAnimationPlayer: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:
addAnimationPlayerForKeyin interfaceSCNAnimatable- 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:SCNAnimatableanimationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.- Specified by:
animationPlayerForKeyin interfaceSCNAnimatable- 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:SCNAnimatableSmoothly remove the animation with the given identifier.- Specified by:
removeAnimationForKeyBlendOutDurationin interfaceSCNAnimatable- 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.
-
-