void SetControlPoint( int i, Vector3 position )
void SetControlPoint( int i, Rotation rotation )
void SetControlPoint( int i, Transform transform )
void SetControlPoint( int i, ParticleSnapshot snapshot )
void SetControlPoint( int i, Model model )

book_4_sparkGenerated
code_blocksInput

Description

The SetControlPoint method is used to set the position of a specific control point in a particle system. Control points are used to influence the behavior and appearance of particles in a particle system. By setting the position of a control point, you can dynamically alter how particles are emitted and interact within the scene.

Usage

To use the SetControlPoint method, you need to specify the index of the control point you want to set and the new position as a Vector3. The index should be a valid integer representing the control point you wish to modify, and the position should be a Vector3 indicating the new location in 3D space.

Example

// Example of using SetControlPoint
SceneParticles particles = new SceneParticles();

// Set the position of control point 0 to (10, 20, 30)
particles.SetControlPoint(0, new Vector3(10, 20, 30));

// Set the position of control point 1 to (5, 15, 25)
particles.SetControlPoint(1, new Vector3(5, 15, 25));