我知道 aModelVisual3D
可以通过 围绕任何轴旋转AxisAngleRotation3D
,但是是否可以对包含 9 ModelVisual3D
s 的 Viewport3D 执行相同操作,因此它们可以一起旋转,就好像它们是一个对象一样。例如,我可以这样做ModelVisual3D
:
<Viewport3D.Triggers>
<EventTrigger RoutedEvent="Viewport3D.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="myVerticalRotation"
Storyboard.TargetProperty="Angle"
From="0" To="360" Duration="0:0:10"
RepeatBehavior="Forever" />
<DoubleAnimation
Storyboard.TargetName="myHorizontalRotation"
Storyboard.TargetProperty="Angle"
From="0" To="360" Duration="0:0:9"
RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Viewport3D.Triggers>
但这假设Viewport3D
只包含一个ModelVisual3D