Skip to main content

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.

Constructors​

MemberWhat it is
RaycastGroundedOperation()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private float airValueValue when nothing is hit (default 0).
private float groundedValueValue when ground is hit (default 1).
private LayerMask layerMaskLayers counted as ground.
private RaycastGroundedOperationType operationTypeRayGlobalDown, RayLocalDown or OverlapSphere.
private float raycastDistanceRay length or sphere radius (default 1).
private Vector3 raycastOriginOffsetStart point in the body's local space.

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the RaycastGrounded rule with these settings.
protected override string GetName()Builds the GameObject name, like Grounded ? 1 : 0.