CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.Speed Property

Game-Themed Introductory Programming Project   

Get/Set the speed (magnitude of the Velocity vector) for the velocity.

public Single Speed {get; set;}

Remarks

The direction which the primitive is traveling will not change, just how fast it is moving will be updated. Primitive with non-zero velocity will move only when ShouldTravel is set to true.

See Also

XNACS1Primitive Class | XNACS1Lib Namespace | Velocity | VelocityDirection | ShouldTravel