WPF Vector3DAnimation

索引サイト





<Button Content="Camera" Height="50" Name="buttonCamera" >
<Button.Triggers>
<EventTrigger RoutedEvent="Button.Click">
<BeginStoryboard>
<Storyboard>

<Point3DAnimation
Storyboard.TargetName="x_camera"
Storyboard.TargetProperty="Position"
From="0,0,3000" To="7000,3000,-5000" Duration="0:0:14" RepeatBehavior="Forever"/>

<Vector3DAnimation
Storyboard.TargetName="x_camera"
Storyboard.TargetProperty="LookDirection"
From="0,0,-1" To="-15,-3,-1" Duration="0:0:14" RepeatBehavior="Forever"/>

</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>

キーフレーム使用時↓



AX