RaycastGroundedOperation
A class in Root.Township, Alta.Intelligence.
Prefab scoring component that adds a RaycastGrounded rule. It has no multiplier, so its weight is always 1.
- Listed in Creatures and AI
- Inherits or implements
TargetOperationComponent
Constructors
| Member | What it is |
|---|---|
RaycastGroundedOperation() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private float airValue | Value when nothing is hit (default 0). |
private float groundedValue | Value when ground is hit (default 1). |
private LayerMask layerMask | Layers counted as ground. |
private RaycastGroundedOperationType operationType | RayGlobalDown, RayLocalDown or OverlapSphere. |
private float raycastDistance | Ray length or sphere radius (default 1). |
private Vector3 raycastOriginOffset | Start point in the body's local space. |
Methods
| Member | What it is |
|---|---|
override TargetOperation GetOperation() | Makes the RaycastGrounded rule with these settings. |
protected override string GetName() | Builds the GameObject name, like Grounded ? 1 : 0. |