Search Results for

    Show / Hide Table of Contents

    Class FOVHitBox

    Represents a field-of-view (FOV) based hitbox used for detecting hurtboxes within a specified range and angle. Inherits from HitBox.

    Inheritance
    System.Object
    HitBox
    FOVHitBox
    Inherited Members
    HitBox._targetTag
    HitBox._targetLayerMask
    HitBox._hitResults
    HitBox._raycastHitResults
    HitBox.ViewID
    HitBox.HasTag()
    HitBox.UpdateViewID(Int32)
    HitBox.UpdatePosition(EntityDirectionType)
    HitBox.UpdatePosition(Vector2)
    Namespace: CatchIo.Runtime.Combat.HitBoxes
    Assembly: cs.temp.dll.dll
    Syntax
    public class FOVHitBox : HitBox

    Methods

    DetectHurtBox<T>(Func<T, Boolean>)

    Detects the best hurtbox within the field of view based on scoring criteria.

    Declaration
    public override T DetectHurtBox<T>(Func<T, bool> filter = null)
        where T : HurtBox
    Parameters
    Type Name Description
    System.Func<T, System.Boolean> filter

    An optional filter to further refine the detection.

    Returns
    Type Description
    T

    The best matching hurtbox, or null if none are found.

    Type Parameters
    Name Description
    T

    The type of hurtbox to detect.

    Overrides
    CatchIo.Runtime.Combat.HitBoxes.HitBox.DetectHurtBox<T>(System.Func<T, System.Boolean>)

    DetectHurtBoxes<T>(Func<T, Boolean>)

    Detects all hurtboxes within the field of view that match the specified criteria.

    Declaration
    public override T[] DetectHurtBoxes<T>(Func<T, bool> filter = null)
        where T : HurtBox
    Parameters
    Type Name Description
    System.Func<T, System.Boolean> filter

    An optional filter to refine the detected hurtboxes.

    Returns
    Type Description
    T[]

    An array of matching hurtboxes, or null if none are found.

    Type Parameters
    Name Description
    T

    The type of hurtboxes to detect.

    Overrides
    CatchIo.Runtime.Combat.HitBoxes.HitBox.DetectHurtBoxes<T>(System.Func<T, System.Boolean>)

    GetBestHurtBox<T>(T[])

    Declaration
    public T GetBestHurtBox<T>(T[] hurtBoxes)
        where T : HurtBox
    Parameters
    Type Name Description
    T[] hurtBoxes
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    UpdateZAngle(Single)

    Updates the Z-axis angle of the field of view.

    Declaration
    public void UpdateZAngle(float zAngle)
    Parameters
    Type Name Description
    System.Single zAngle

    The new Z-axis angle in degrees.

    In This Article
    Back to top ©Team STEP, All Rights Reserved.