Class Tagalong
Behavior for an entity that follows the camera.
Inheritance
Tagalong
  Implements
Inherited Members
Namespace: Evergine.Components.Toolkit
Assembly: Evergine.Components.dll
Syntax
public class Tagalong : Behavior, IDependencyObject
  Fields
transform
The transform component.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
  Field Value
| Type | Description | 
|---|---|
| Transform3D | 
Properties
MaxAngle
Gets or sets the max angle of the panel.
Declaration
[RenderProperty(typeof(FloatRadianToDegreeConverter))]
public float MaxAngle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
MaxDistance
Gets or sets the maximum distance.
Declaration
public float MaxDistance { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
MinDistance
Gets or sets the minimum distance.
Declaration
public float MinDistance { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
SmoothDistanceFactor
Gets or sets the smooth factor for the distance.
Declaration
public float SmoothDistanceFactor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
SmoothPositionFactor
Gets or sets the smooth factor for the position.
Declaration
public float SmoothPositionFactor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
  Returns
| Type | Description | 
|---|---|
| bool | True if all is OK.  | 
      
Overrides
Update(TimeSpan)
Updates the behavior.
Declaration
protected override void Update(TimeSpan gameTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | gameTime | The elapsed game time.  |