Lumberyard
Legacy Reference

Intersection Tests Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to configure intersection tests.

BoundingBoxVsBoundingBox node

Used to test two bounding boxes to see if they intersect.

Inputs

Port Type Description
Activate Any Triggers the node
Min1 Vec3 Minimum point for the first bounding box
Max1 Vec3 Maximum point for the first bounding box
Min2 Vec3 Minimum point for the second bounding box
Max2 Vec3 Maximum point for the second bounding box

Outputs

Port Type Description
Result Boolean Outputs true if an intersection occurred
True Any Triggers if an intersection occurred
False Any Triggers if an intersection did not occur

BoundingBoxVsSphere node

Used to test a bounding box and a sphere to see if they intersect.

Inputs

Port Type Description
Activate Any Triggers the node
BoundsMin Vec3 Minimum point of the bounding box
BoundsMax Vec3 Maximum point of the bounding box
SphereCenter Vec3 Center of the sphere
SphereRadius Float Radius of the sphere

Outputs

Port Type Description
Result Boolean Outputs true if an intersection occurred
True Any Triggers if an intersection occurred
False Any Triggers if an intersection did not occur