Vizard 8 » Command Index » Vizard objects » VizPhysicsShape » <VizPhysicsShape>.setHardness
8.0

<VizPhysicsShape>.setHardness

Sets the hardness of a physics shape.

<VizPhysicsShape>.setHardness(  
value  
)  
value

Remarks

Return Value

None

Example

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

Alternate Method:
shape.hardness = .5