9.5.2

Table Of Contents
1086 CHAPTER 22
XPRESSO EDITOR 1087
Bounding Box
In this mode, the node checks whether the bounding boxes of the two objects intersect each other.
If you want child objects to be taken into account as well, in the Attribute manager enable Include
Children. The two bounding boxes will be expanded if necessary to enclose the child objects as well.
Sphere
A virtual sphere is placed around each of the objects. If these two virtual spheres intersect, the node
detects a collision. If Include Children is enabled in the Attribute manager, these two virtual spheres
will also enclose the child objects.
Object
This mode detects collisions between the two objects at the polygon level. This is the most accurate
type of collision detection but also the most CPU-intensive. In this mode, you can also apply materials
to the surfaces that are colliding. To do this, create a Polygon Selection tag each for the two objects
then drag and drop these tags into the Selection Tag boxes in the Attribute manager. The node will
now store the polygons that are colliding in these Selection tags.
Distance
Detects a collision when the surfaces of the two objects are within a certain distance of each other.
This distance is dened by the Tolerance input port.
Tolerance
In this mode, the Tolerance input port denes a distance around each object. This distance increases
the virtual size of the objects for the purposes of collision detection. If, taking their virtual sizes into
account, the objects then intersect each other, a collision is detected.
If the objects colliding are deformed, enable Use Deformed Points to ensure accurate collision
detection. The Matrix Mode settings in the Attribute manager are only relevant when the node outputs
the point positions of the objects.
The following output ports are available:
Collision: Outputs a value of the type Bool which indicates whether the
objects are currently colliding.
Distance: Outputs the smallest distance between the objects (works in the
Sphere and Distance modes only).