VectorFrom
Introduction
The VectorFrom returns a vector from the argument position to the calling instance. This method returns the shortest vector which can be traveled along to reach the surface of the calling instance. This method does not return the distance from the calling point to the center of the shape.
Code Example
The following code creates a concave Polygon and a Line. The Line draws the shortest line from the tip of the cursor to the Polygon. Add the following using statements:
Add the following at class scope:
Add the following in Initialize after initializing FlatRedball:
Add the following to Update:
Last updated