Open topic with navigation
<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))