Vizard 7 » Command Index » Vizard objects » VizPhysicsShape » <VizPhysicsShape>.setBounce
7.7

<VizPhysicsShape>.setBounce

Sets the bounce of a physics shape.

<VizPhysicsShape>.setBounce(  
value  
)  
value

Remarks

Return Value

None

Example

ball = viz.add('ball.wrl')
shape = ball.collideBox()
shape.setBounce(.5)

Alternate Method:
shape.bounce = .5