How to set bounciness in Javascript?



A student has asked me how they would control the bounciness of an item in Javascript rather than CoBlocks.



Hi, @Andrew_Worsnop!

All physics related properties of an item can be found under item.physics. The bounciness can be set via restitution property.

item.physics.restitution = 1