Class ProjectileComponent
- Namespace
- TDMaker.Core.Components
- Assembly
- TDMaker.Core.dll
Runtime travel and impact data for a pooled projectile.
public sealed class ProjectileComponent
- Inheritance
-
ProjectileComponent
- Inherited Members
Constructors
ProjectileComponent()
public ProjectileComponent()
Properties
Damage
Damage definition.
public DamageDef Damage { get; }
Property Value
Definition
Projectile travel definition.
public ProjectileDef Definition { get; }
Property Value
Destination
Fixed aim point, or current homing destination.
public Vec2 Destination { get; }
Property Value
Duration
Initial flight duration for straight and ballistic travel.
public float Duration { get; }
Property Value
Elapsed
Seconds since launch.
public float Elapsed { get; }
Property Value
ExperienceRecipientId
Hero experience recipient captured at launch.
public int ExperienceRecipientId { get; }
Property Value
Height
Visual height above the simulation plane.
public float Height { get; }
Property Value
Origin
Launch position.
public Vec2 Origin { get; }
Property Value
OutputScale
Outgoing damage multiplier captured at launch.
public float OutputScale { get; }
Property Value
SourceId
Source entity identifier.
public int SourceId { get; }
Property Value
TargetId
Target entity identifier.
public int TargetId { get; }