RaycastGrounded
A class in Root.Township, Alta.Intelligence.
Scoring rule that checks for ground near the creature's body with a ray or sphere, returning one value when ground is found and another when not. Made by CreateTargetOperation.RaycastGrounded.
- Listed in Creatures and AI
- Inherits or implements
TargetOperation
Constructors
| Member | What it is |
|---|---|
RaycastGrounded(float groundedValue, float airValue, Vector3 raycastOriginOffset, float raycastDistance, LayerMask layerMask, RaycastGroundedOperationType operationType) | Creates a RaycastGrounded from groundedValue, airValue, raycastOriginOffset, raycastDistance, layerMask and operationType. |
Fields
6 private and internal fields
Methods
| Member | What it is |
|---|---|
override float Evaluate(Agent agent, ITarget target) | Runs the check from the body's offset point and returns groundedValue on a hit, else airValue. The target is ignored. |
override string ToString() | Shows the two values. |