SetParticleBounds
Category: Particle Effects (Pro)
Signature
SetParticleBounds(system As Integer, x As Integer, y As Integer, width As Integer, height As Integer, bounce As Double)
Returns
Void
Description
Confines particle centers to a rectangular area and reflects velocity at its edges.
Performance and behavior
Bounce is clamped from 0 for no rebound to 1 for a perfectly elastic rebound. Pass a non-positive width or height to disable bounds.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
Example
SetParticleBounds particles, 20, 100, 1240, 580, 0.75