Class MotionAttribute
On an archetype's Comp<T> field: the component whose spatial field moves the entity, replicated as motion segments (.Motion(comp, …)).
Per archetype, because a spaceship and a walking NPC do not deserve the same tolerance.
[AttributeUsage(AttributeTargets.Field, Inherited = false)]
public sealed class MotionAttribute : Attribute
- Inheritance
-
MotionAttribute
- Inherited Members
Constructors
MotionAttribute()
public MotionAttribute()
Properties
MaxAgeS
The heartbeat bounding velocity-rounding drift, seconds; NaN keeps the builder's default (5 s).
public double MaxAgeS { get; set; }
Property Value
TeleportMps
The speed past which a jump is a teleport, metres per second; NaN for none.
public double TeleportMps { get; set; }
Property Value
ToleranceM
The extrapolation error that forces a new segment, metres; NaN keeps the builder's default (5 cm).
public double ToleranceM { get; set; }