AppleSCNParticlePropertyController - UBogun/Xojo-iosLib GitHub Wiki
Inherits from AppleObject
Memory leak check: not yet done.
Status: completed, but could maybe use convenience methods for the property constants.
An SCNParticlePropertyController object uses Core Animation semantics to animate a property of the particles rendered by an SCNParticleSystem object. Use particle property controllers to change the properties of individual particles in the system over time. For example, by associating a keyframe animation with a particle system’s SCNParticlePropertyColor property, you can create a flame effect with particles that change from blue to white to orange as they rise.
Constructors
Constructor (Animation As AppleCAAnimation): Creates a particle property controller with the specified Core Animation animation.
Properties
Animation As AppleCAAnimation: The Core Animation object defining the behavior of the property animation.
InputBias As Double: An offset to add to the input value of the controller’s animation.
InputMode As SCNParticleInputMode: The mode that determines input values for the property controller’s animation.
SCNParticleInputMode | Definition |
---|---|
OverLife | The controller’s effect on a particle property is a function of the time since the particle’s birth. |
OverDistance | The controller’s effect on a particle property is a function of the particle’s distance from the position of a specified node. Use the inputOrigin property to specify the node to measure distance from, and the inputBias and inputScale properties to refine the relationship between a range of distances into a range of input values for the controller’s animation. |
OverOtherProperty | The controller’s effect on a particle property is a function of another of the particle’s properties. Use the inputProperty property to specify the input property, and the inputBias and inputScale properties to refine the relationship between a range of property values into a range of input values for the controller’s animation. |
InputOrigin As AppleSCNNode: A node whose distance to each particle provides input values for the controller’s animation.
This property applies only when the controller’s inputMode value is SCNParticleInputModeOverDistance. When you select that input mode, this property’s value must be a node in the scene containing the particle system; otherwise, SceneKit ignores this property. The default value is nil.
InputProperty As Text: A particle property that provides input values for this property controller’s animation. One of the constants of the AppleSCNParticleSystem class.
InputScale As Double: A factor for multiplying the input value of the controller’s animation.