Vizard 8 » Command Index » Vizard modules » viz » <viz:phys>.intersectNode
8.0

<viz:phys>.intersectNode

Returns a list of physics nodes that intersect this node.

<viz:phys>.intersectNode(  
node  
)  
node
Node object to intersect with the physics scene

Remarks

The node must have a physics node attached to it by calling one of the collide functions.

Return Value

List of node objects that node is colliding with.

Example

floor = viz.add('tut_ground.wrl')
shape1 = floor.collidePlane()
ball = viz.add('ball.wrl')
shape = ball.collideBox()
print(viz.phys.intersectNode(ball))