Free |
public class FreeCameraAnimationNode : AnimationNodeBase
The FreeCameraAnimationNode type exposes the following members.
Name | Description | |
---|---|---|
FreeCameraAnimationNode | Constructor |
Name | Description | |
---|---|---|
AnimationType | Gets or sets a type of animation that is performed with this FreeCameraAnimationNode. Default value is LinearInterpolation. | |
Camera | FreeCamera that is animated. This value is set in the CameraAnimationNode's constructor. | |
CameraPositionTrack | Gets a PositionTrack that defines position key frames for CameraPosition property. | |
FirstFrameNumber |
Gets the first defined frame number for this AnimationNode.
(Overrides AnimationNodeBaseFirstFrameNumber) | |
LastFrameNumber |
Gets the last defined frame number for this AnimationNode.
(Overrides AnimationNodeBaseLastFrameNumber) | |
TargetPositionTrack | Gets a Position3DTrack that defines position key frames for TargetPosition property. | |
UpDirectionTrack | Gets a Vector3DTrack that defines Vector3D value key frames for UpDirection property. |
Name | Description | |
---|---|---|
GetDumpString |
GetDumpString virtual method can be overridden to provide detailed description of this object.
(Overrides AnimationNodeBaseGetDumpString) | |
GoToFrame |
GoToFrame method updates the objects animated with this animation node based on the specified frame number.
(Overrides AnimationNodeBaseGoToFrame(Double)) |
FreeCameraAnimationNode provides logic to animate a FreeCamera's CameraPosition, TargetPosition and UpDirection.
FreeCameraAnimationNode can perform a linear or spherical animation.
When AnimationType is set to LinearInterpolation (by default), then CameraPosition, TargetPosition and UpDirection are animated with moving lineary from one position or vector to another. This means that if you only animate CameraPosition, then the distance to the TargetPosition will change during animation. If you want to circle the camera around the target object and preserve the distance, then use the CameraAnimationNode.
To rotate the camera around TargetPosition, set the AnimationType is set to SphericalInterpolation. In this mode for each KeyFrames in CameraPositionTrack a Quaternion is created from UpDirection and calculated LookDirection. Then CameraPosition and UpDirection are animated using Quaternion.Slerp. In this mode it is also possible to lineary animate the TargetPosition and the distance of the Camera to the TargetPosition.