CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.VelocityDirection Property

Game-Themed Introductory Programming Project   

Get/Set the direction of the velocity.

public Vector2 VelocityDirection {get; set;}

Remarks

The speed upon which the primitive travels will not change, only the direction will be updated. Primitive with non-zero velocity will move only when ShouldTravel is set to true.

See Also

XNACS1Primitive Class | XNACS1Lib Namespace | ShouldTravel | Velocity | Speed