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

<VizPhysicsShape>.getFriction

Gets the friction of a physics shape.

<VizPhysicsShape>.getFriction()  

Remarks

Return Value

The friction value.

Example

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

Alternate Method:
print(shape.friction)