# eps0003/easy3d architecture

> Architecture diagram of the GitHub repository eps0003/easy3d, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eps0003/easy3d
- Repository: https://github.com/eps0003/easy3d

## Overview

##### Main Components Structure
a. Core (Easy3D.as)
b. Animation System
c. Model System
d. Utility System
e. Husk System

##### Component Details

Animation System:
- Animator
- Choreographer
- IAnimation Interface
- CompositeAnimation
- Duration
- Lerp
- Multi
- Offset
- Pause
- Rate
- Repeat
- Reverse
- Trim

Model System:
- Create two main components:
- Basic Model
- CompositeModel

Utility System:
- Related utilities:
- Math Components (CMatrix, Vec3f, Quaternion)
- Camera System
- Easing Functions
- General Utilities

Husk System:
- HuskManager and its relationship with the game's blob system

##### Relationships and Data Flow
- How Animator connects models with animations
- How Choreographer orchestrates multiple animations

##### Implementation Details
- Version information
- File structure correlation

##### Technical Notes
- A note about performance considerations (e.g., polynomial vs. trigonometric functions for easing)
- Integration points with game engine features
- Synchronization points between client and server

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Easy3D_Framework
        Core["Core System"]:::core
        Hooks["Hooks System"]:::core

        subgraph Animation_System
            AnimCore["Animation Core"]:::animation
            subgraph AnimCore_Components
                Animator["Animator"]:::animation
                Choreographer["Choreographer"]:::animation
                IAnimation["IAnimation Interface"]:::animation
            end

            subgraph Utility_Animations
                CompAnim["CompositeAnimation"]:::animation
                Duration["Duration"]:::animation
                Lerp["Lerp"]:::animation
                Multi["Multi"]:::animation
                Offset["Offset"]:::animation
                Pause["Pause"]:::animation
                Rate["Rate"]:::animation
                Repeat["Repeat"]:::animation
                Reverse["Reverse"]:::animation
                Trim["Trim"]:::animation
            end
        end

        subgraph Model_System
            BasicModel["Basic Model"]:::model
            CompModel["Composite Model"]:::model
        end

        subgraph Utility_System
            subgraph Math_Components
                Matrix["Matrix"]:::utility
                Vector["Vector"]:::utility
                Quaternion["Quaternion"]:::utility
            end
            Camera["Camera System"]:::utility
            Easing["Easing Functions"]:::utility
            GenUtils["General Utilities"]:::utility
            MathUtils["Math Utilities"]:::utility
        end

        subgraph Husk_System
            HuskManager["Husk Manager"]:::husk
            HuskConfig["Husk Configuration"]:::husk
            HuskCore["Husk Core"]:::husk
        end
    end

    %% Relationships
    Core --> AnimCore
    Core --> Model_System
    Core --> Utility_System
    Core --> Husk_System
    Hooks --> Core

    AnimCore --> Utility_Animations
    Animator --> IAnimation
    Choreographer --> Animator
    CompModel --> BasicModel
    HuskManager --> HuskCore
    HuskConfig --> HuskCore

    %% Click Events
    click Core "https://github.com/eps0003/easy3d/blob/master/Easy3D/Easy3D.as"
    click Hooks "https://github.com/eps0003/easy3d/blob/master/Easy3D/Easy3DHooks.as"
    click Animator "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animation/Animator.as"
    click Choreographer "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animation/Choreographer.as"
    click IAnimation "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animation/IAnimation.as"
    click CompAnim "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/CompositeAnimation.as"
    click Duration "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Duration.as"
    click Lerp "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Lerp.as"
    click Multi "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Multi.as"
    click Offset "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Offset.as"
    click Pause "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Pause.as"
    click Rate "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Rate.as"
    click Repeat "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Repeat.as"
    click Reverse "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Reverse.as"
    click Trim "https://github.com/eps0003/easy3d/blob/master/Easy3D/Animations/Trim.as"
    click BasicModel "https://github.com/eps0003/easy3d/blob/master/Easy3D/Model/Model.as"
    click CompModel "https://github.com/eps0003/easy3d/blob/master/Easy3D/Model/CompositeModel.as"
    click Matrix "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/CMatrix.as"
    click Vector "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Vec3f.as"
    click Quaternion "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Quaternion.as"
    click Camera "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Camera.as"
    click Easing "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Easing.as"
    click GenUtils "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Utility.as"
    click MathUtils "https://github.com/eps0003/easy3d/blob/master/Easy3D/Utility/Maths.as"
    click HuskManager "https://github.com/eps0003/easy3d/blob/master/Easy3D/Husk/HuskManager.as"
    click HuskConfig "https://github.com/eps0003/easy3d/blob/master/Easy3D/Husk/Husk.cfg"
    click HuskCore "https://github.com/eps0003/easy3d/blob/master/Easy3D/Husk/Husk.as"

    %% Styling
    classDef core fill:#3498db
    classDef animation fill:#e67e22
    classDef model fill:#2ecc71
    classDef utility fill:#95a5a6
    classDef husk fill:#9b59b6

    %% Legend
    subgraph Legend
        L1["Core Components"]:::core
        L2["Animation Components"]:::animation
        L3["Model Components"]:::model
        L4["Utility Components"]:::utility
        L5["Husk Components"]:::husk
    end
```
