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

<VizPhysicsShape>.setFriction

Sets the friction of a physics shape.

<VizPhysicsShape>.setFriction(  
value  
)  
value

Remarks

Return Value

None

Example

ball = viz.add('ball.wrl')
shape = ball.collideBox()
shape.setFriction(.5)

Alternate Method:
shape.friction = .5