Mesh Animation Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public MeshAnimation Animation { get; set; }

Property Value

Type: MeshAnimation
Remarks

Tests: DeltaEngine.Rendering3D.Tests.MeshAnimationTests
Examples

2 unit tests call DeltaEngine.Rendering3D.Mesh.Animation
[Test, CloseAfterFirstFrame]
public void CreateMeshAnimationByCreationData()
{
    MeshAnimation animation = CreateAnimationWith75Frames(FramesPerSecond);
    Assert.AreEqual(NumberOfAnimationFrames, animation.NumberOfFrames);
    Assert.AreEqual(FramesPerSecond, animation.FramesPerSecond);
    Assert.AreEqual(NumberOfAnimationFrames, animation.Frames.Length);
    Assert.AreEqual(3, animation.Duration);
}
[Test]
public void ShowWavingSkinnedRectangleFromModelData()
{
    var geometry = CreateSkinnedGeometry();
    var skinnedMesh = new Mesh(geometry,
        new Material(ShaderFlags.TexturedSkinned, "DeltaEngineLogoOpaque"));
    skinnedMesh.Animation = CreateWavingMeshAnimationWith60Fps();
    new Model(new ModelData(skinnedMesh), Vector3D.Zero);
}
See Also