CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.FrontDirection Property

Game-Themed Introductory Programming Project   

Sets the front direction of the primitive. Setting FrontDireciton will cause the RotateAngle of the primitive to be updated accordingly. y default, when RotateAngle is 0, FrontDireciton points towards (1,0) [positive X-direction]. E.g., if we set RotateAngle to 90-degrees, FrontDireciton will be updated accordinlgy to (0,1) [positive y-direciton], or rotated 90-degress in the anit-clockwise direction

public Vector2 FrontDirection {get; set;}

See Also

XNACS1Primitive Class | XNACS1Lib Namespace | RotateAngle