mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 23:43:19 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.7 KiB
1.7 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | ||||||
|---|---|---|---|---|---|---|---|---|---|
| How to: Animate Camera Position and Direction in a 3D Scene | 03/30/2017 |
|
480224b7-a5e5-4165-ba7f-ef760ddff94a |
How to: Animate Camera Position and Direction in a 3D Scene
The following example shows how to animate the position of a camera and animate the direction it is pointing in a 3D scene. This is done by using xref:System.Windows.Media.Animation.Point3DAnimation and xref:System.Windows.Media.Animation.Vector3DAnimation to animate the xref:System.Windows.Media.Media3D.ProjectionCamera.Position%2A and xref:System.Windows.Media.Media3D.ProjectionCamera.LookDirection%2A properties respectively of the xref:System.Windows.Media.Media3D.PerspectiveCamera. You might use an animation like this to change the onlooker's view of a scene in response to an event.
Example
[!code-xamlAnimation3DGallery_snip#PointVector3DAnimationExampleWholePage]