GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class Animator

    Controls the animation playback of a 3D model.

    Inheritance
    object
    Animator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.Graphics.Animation3D
    Assembly: Genesis.dll
    Syntax
    public class Animator

    Constructors

    Animator()

    Declaration
    public Animator()

    Animator(Animation)

    Initializes a new instance of the Animator class with the specified animation.

    Declaration
    public Animator(Animation animation)
    Parameters
    Type Name Description
    Animation animation

    Properties

    CurrentAnimation

    Currently active animation.

    Declaration
    public Animation CurrentAnimation { get; set; }
    Property Value
    Type Description
    Animation

    CurrentTime

    Current time in the animation.

    Declaration
    public float CurrentTime { get; set; }
    Property Value
    Type Description
    float

    DeltaTime

    Time elapsed since last frame.

    Declaration
    public float DeltaTime { get; set; }
    Property Value
    Type Description
    float

    FinalBoneMatrices

    List of final bone transformation matrices.

    Declaration
    public List<mat4> FinalBoneMatrices { get; set; }
    Property Value
    Type Description
    List<mat4>

    InterpolateFrames

    Flag indicating whether to interpolate frames during animation playback.

    Declaration
    public bool InterpolateFrames { get; set; }
    Property Value
    Type Description
    bool

    Loop

    Flag indicating whether to loop the animation.

    Declaration
    public bool Loop { get; set; }
    Property Value
    Type Description
    bool

    Play

    Flag indicating whether the animation is playing.

    Declaration
    public bool Play { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CalculateBoneTransform(AssimpNodeData, mat4)

    Calculates bone transformations recursively based on the animation hierarchy.

    Declaration
    public void CalculateBoneTransform(AssimpNodeData node, mat4 parentTransform)
    Parameters
    Type Name Description
    AssimpNodeData node
    mat4 parentTransform

    LoadAnimation(Animation)

    Loads a new animation.

    Declaration
    public void LoadAnimation(Animation animation)
    Parameters
    Type Name Description
    Animation animation

    UpdateAnimation(float)

    Updates the animation based on the elapsed time since the last frame.

    Declaration
    public void UpdateAnimation(float dt)
    Parameters
    Type Name Description
    float dt
    In this article
    Back to top Generated by DocFX