<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