Class CameraNode
- Namespace
- Fantas
- Assembly
- Fantas.dll
Control which part of the scene is visible in the viewport
public class CameraNode : Node
- Inheritance
-
CameraNode
- Inherited Members
Constructors
CameraNode()
Create a camera node
public CameraNode()
CameraNode(CameraNode)
Copy a camera node
public CameraNode(CameraNode other)
Parameters
otherCameraNode
Properties
IsShaking
Check if shake animation is running
public bool IsShaking { get; }
Property Value
Methods
Contains(Node)
Check if node is visible in the camera viewport
public bool Contains(Node node)
Parameters
nodeNodeNode
Returns
- bool
Return true if the camera viewport contains the node
Copy()
Copy this instance
protected override Node Copy()
Returns
Shake(double)
Start shaking camera animation
public void Shake(double duration)
Parameters
durationdouble
Shake(Vector2, double)
Start shaking camera animation
public void Shake(Vector2 delta, double duration)
Parameters
StopShake()
Stop camera animation shaking
public void StopShake()