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

<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