CameraFollowComponent
Namespace: Murder.Components
Assembly: Murder.dll
public sealed struct CameraFollowComponent : IComponent
Component used by the camera for tracking its target position.
Implements: IComponent
⭐ Constructors
public CameraFollowComponent()
public CameraFollowComponent(Point targetPosition)
Parameters
targetPosition
Point
public CameraFollowComponent(bool enabled, Entity secondaryTarget)
Parameters
enabled
bool
secondaryTarget
Entity
public CameraFollowComponent(bool enabled, CameraStyle style)
Parameters
enabled
bool
style
CameraStyle
public CameraFollowComponent(bool enabled)
Parameters
enabled
bool
⭐ Properties
Enabled
public readonly bool Enabled;
Returns
bool
SecondaryTarget
public readonly Entity SecondaryTarget;
Returns
Entity
Style
public readonly CameraStyle Style;
Force to centralize the camera without a dead zone.
Returns
CameraStyle
TargetPosition
public readonly T? TargetPosition;
Returns
T?
⚡