Category: 2D Game Physics (Pro)
SetBodyRestitution(body As Integer, restitution As Double)
Void
Sets collision bounciness from 0 through 1.
Zero removes bounce; one preserves normal collision speed. Values are clamped to the valid range.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
SetBodyRestitution ball, 0.85