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

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