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

<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)