CLuaParticle.SetBounce
From GMod Wiki
Function | |
Syntax | CLuaParticle:SetBounce( Float amount ) |
Description: | |
Set the amount of bounce for a Particle. | |
Returns: | nil |
In Object: | CLuaParticle |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CLuaParticle.SetBounce]CLuaParticle.SetBounce [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- Collision must be enabled for the particle to bounce.
- The bounce is the multiplier for the normal reflection. For example, if a particle was falling at a velocity of 10, a bounce of 0.9 would make it bounce upwards with a velocity of 9. Likewise, a bounce of 5 would make it bounce upwards with a velocity of 50.