CSS Logo XNACS1Lib Library Documentation
XNACS1Base.World.ClampAtWorldBound Method 

Game-Themed Introductory Programming Project   

Ensures that the inputPrimitive is kept within bounds of the world. If inputPrimitive position is outside of the world bound, This function will determine the distances to the closes bound and force the inputPrimitive to be insde that world bound.

public static BoundCollideStatus ClampAtWorldBound(
   XNACS1Primitive inputPrimitive
);

Parameters

inputPrimitive
The primtive to be tested

Return Value

Which of the world bound that the inputPrimitive has moved out of.

See Also

XNACS1Base.World Class | XNACS1Lib Namespace