Vizard 7 » Command Index » Vizard objects » VizPhysicsShape » <VizPhysicsShape>.getHardness
7.6

<VizPhysicsShape>.getHardness

Gets the hardness of a physics shape.

<VizPhysicsShape>.getHardness()  

Remarks

Return Value

The hardness value.

Example

ball = viz.add('ball.wrl')
shape = ball.collideBox()
print(shape.getHardness())

Alternate Method:
print(shape.hardness)