GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • DirectionalLight
      • Game
      • GameElement
      • GameEventHandler
      • IGameBehavior
      • Input
      • Input.Keys
      • Layer
      • Light
      • Light2D
      • PointLight
      • Scene
      • Scene2D
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
      • Window
      • Window.WindowEventHandler
      • WindowUtilities
      • WindowUtilities.POINT
      • WindowUtilities.RECT
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger
      • CapsuleCollider
      • CapsuleRigidBody
      • CompoundMeshCollider
      • ConvexHullBehavior
      • ConvexHullCollider
      • MeshCollider
      • QubeConvexHull
      • SphereCollider
      • SphereRigidBody
      • SphereTrigger
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • FindPathAsynchResult
      • GridCell
      • Model
      • NavMesh
      • Obstacle
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sphere
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
      • Waypoint
    • Genesis.Graphics
      • Animation
      • AnimationCallback
      • AnimationCallback.AnimationEvent
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Frustum
      • Glyphe
      • IRenderDevice
      • InstancedElement
      • InstancedMesh
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • RenderInstanceContainer
      • RenderSettings
      • Shader
      • ShaderProgram
      • SpriteSheet
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • GLRenderer
      • LegacyRenerer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • BorderCircleShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • Element3DShader
      • FXScreenSpaceShadowShader
      • InstanceShader2D
      • InstancedShader
      • Light2DShader
      • LightmapShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SolidShapeShader
      • SpecularShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • CircleShape
      • FrameShape
      • GlypheShape
      • Light2DShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SphereShape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • ColliderBehavior2D
      • ColliderBehavior3D
      • CollisionGroup
      • CollisionGroupExtensions
      • HitResult
      • HitResult2D
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Ray2D
      • Raycast
      • Raycast2D
      • RigidBodyBehavior2D
      • RigidBodyBehavior3D
      • TriggerBehavior2D
      • TriggerBehavior3D
    • Genesis.UI
      • Button
      • Canvas
      • GridView
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget
      • WidgetAnchor
    • Genesis.UI.Items
      • GridViewImageIcon
      • IItem

    Class Bone

    Represents a bone in a skeletal animation system.

    Inheritance
    object
    Bone
    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 Bone

    Constructors

    Bone(string, int, NodeAnimationChannel)

    Initializes a new instance of the Bone class.

    Declaration
    public Bone(string name, int id, NodeAnimationChannel channel)
    Parameters
    Type Name Description
    string name
    int id
    NodeAnimationChannel channel

    Properties

    ID

    ID of the bone.

    Declaration
    public int ID { get; set; }
    Property Value
    Type Description
    int

    LocalTransform

    Local transformation matrix of the bone.

    Declaration
    public mat4 LocalTransform { get; set; }
    Property Value
    Type Description
    mat4

    Name

    Name of the bone.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    NumPositions

    Number of position keyframes.

    Declaration
    public int NumPositions { get; set; }
    Property Value
    Type Description
    int

    NumRotations

    Number of rotation keyframes.

    Declaration
    public int NumRotations { get; set; }
    Property Value
    Type Description
    int

    NumScalings

    Number of scale keyframes.

    Declaration
    public int NumScalings { get; set; }
    Property Value
    Type Description
    int

    Positions

    List of position keyframes for the bone.

    Declaration
    public List<KeyPosition> Positions { get; set; }
    Property Value
    Type Description
    List<KeyPosition>

    Rotations

    List of rotation keyframes for the bone.

    Declaration
    public List<KeyRotation> Rotations { get; set; }
    Property Value
    Type Description
    List<KeyRotation>

    Scales

    List of scale keyframes for the bone.

    Declaration
    public List<KeyScale> Scales { get; set; }
    Property Value
    Type Description
    List<KeyScale>

    Methods

    GetPositionIndex(float)

    Gets the index of the position keyframe at the specified animation time.

    Declaration
    public int GetPositionIndex(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    int

    GetRotationIndex(float)

    Gets the index of the rotation keyframe at the specified animation time.

    Declaration
    public int GetRotationIndex(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    int

    GetScaleFactor(float, float, float)

    Calculates the interpolation factor between two keyframes.

    Declaration
    public float GetScaleFactor(float lastTimeStamp, float nextTimeStamp, float animationTime)
    Parameters
    Type Name Description
    float lastTimeStamp
    float nextTimeStamp
    float animationTime
    Returns
    Type Description
    float

    GetScaleIndex(float)

    Gets the index of the scale keyframe at the specified animation time.

    Declaration
    public int GetScaleIndex(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    int

    InterpolatePosition(float)

    Interpolates position for the bone at the specified animation time.

    Declaration
    public mat4 InterpolatePosition(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    mat4

    InterpolateRotation(float)

    Interpolates rotation for the bone at the specified animation time.

    Declaration
    public mat4 InterpolateRotation(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    mat4

    InterpolateScaling(float)

    Interpolates scale for the bone at the specified animation time.

    Declaration
    public mat4 InterpolateScaling(float animationTime)
    Parameters
    Type Name Description
    float animationTime
    Returns
    Type Description
    mat4

    Update(float, bool)

    Updates the bone transformation based on the animation time.

    Declaration
    public void Update(float animationTime, bool interpolate)
    Parameters
    Type Name Description
    float animationTime
    bool interpolate
    In this article
    Back to top Generated by DocFX