{{oldin|[[0.8.0]]|080|type=function}}
Sets the restitution of the shape.
Restitution indicates the "bounciness" of the shape. High restitution can be used to model stuff like a rubber ball, while low restitution can be used for "dull" objects, like a bag of sand.
== Function ==
=== Synopsis ===
<source lang="lua">
Shape:setRestitution( restitution )
</source>
=== Arguments ===
{{param|number|restitution|The restitution of the shape.}}
=== Returns ===
Nothing.
== Notes ==
A shape with a restitution of 0 will still bounce a little if the shape it collides with has a restitution higher than 0.
== See Also ==
* [[parent::Shape]]
[[Category:Functions]]
{{#set:Description=Sets the restitution of the shape.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|Shape:setRestitution}}