-
Notifications
You must be signed in to change notification settings - Fork 0
YoPointFX2D example
Let's create a new point that highlights position of the center of mass. Start by clicking Add...:

In the new dialog window, select Point in the 2D Graphics section and name it "Center of Mass":

Click Create. A new editor becomes available on the right side while a new blue point appears in the 2D view:

To show the 2D click Overhead Plotter in the YoGraphic menu:

Note the presence of a check mark for most fields. This helps identifying whether a field is properly filled or not, in which case the check mark becomes
. A new
YoGraphic
cannot be saved until all check marks are green.
Let's link the position of the point to the x and y coordinates of the center of mass. In the Search Position look for "estimatedCenterOfMassPosition" and press Enter, the editor should be updated as follows:

Let's modify the properties of the point:

After saving this new YoGraphic
, the point in the 2D view tracks the position of the center of mass:
