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

<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