Sphere Cast 2D
Node description and basic instructions
Last updated
Node description and basic instructions
Last updated
Casts a circle against Colliders in the Scene, returning the first Collider to contact with it.
A Circle Cast is conceptually like dragging a circle through the Scene in a particular direction. Any object making contact with the circle can be detected and reported.
To create it, right-click on free space in AI Tree inspector and select Create Node/Tasks/Physics2D/Sphere Cast 2D.
This task node has a number of fields, that are highlighted in picture below.
Node Name
Name of node
Ignore Abort Self
Whether node ignores abort self or not
Origin
Origin of the Sphere Cast 2D
Direction
Direction of the Sphere Cast 2D
Radius
Radius of the sphere
Max Distance
Max length of the cast (by default: infinity)
Culling Layer
Used to selectively ignore colliders when casting a Sphere Cast 2D
Message
Value of message
Argument
Argument of message in