How to set bounciness in Javascript?

#1

Hi,

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

Thanks

#2

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