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

<VizPhysicsShape>.setDensity

Sets the density of a physics shape.

<VizPhysicsShape>.setDensity(  
value  
)  
value

Remarks

Return Value

None

Example

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

Alternate Method:
shape.density = .5