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

<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