# IAim

Interface used to Check if the Player/Animal is Aiming

## Properties

```csharp
   // Is the Aiming Logic Active? 
   bool Active { get; set; }
   
    /// <summary>Direction Vector Stored of the Aiming Logic</summary>
    Vector3 AimDirection { get; }

    /// <summary>Returns the Main Camera used for Aiming</summary>
    Camera MainCamera { get; }

    /// <summary>Limit the Aiming via Angle limit Which means the Aiming is Active but should not be used</summary>
    bool Limited { get; set; }

    /// <summary>Check if the Camera is in the (Right:true) or (Left: False) side of the Animal </summary>
    bool CameraSide { get; }

    /// <summary>Check if the Target is in the (Right:true) or (Left: False) side of the Animal </summary>
    bool TargetSide { get; }

    /// <summary>What to do with the Triggers ... Ignore them? Use them?</summary>
    QueryTriggerInteraction TriggerInteraction { get; }

    /// <summary>Layer to Aim and Hit</summary>
    LayerMask AimLayer { get; }

    /// <summary>RaycastHit Data of the Aim logic</summary>
    RaycastHit AimHit { get; }

    /// <summary>Forced Target on the Aiming Logic</summary>
    Transform AimTarget { set; get; }

    /// <summary>Returns the origin of the Aim Logic</summary>
    Transform AimOrigin { set; get; }

    /// <summary>Forced the Aim to Ignore a Transform</summary>
    Transform IgnoreTransform { set; get; }

    /// <summary>Enable disable the Aim</summary>
    void SetActive(bool value);

    /// <summary>Forced Target on the Aiming Logic</summary>
    void SetTarget(Transform value);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/interfaces/iaim.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
