Skip to content

YoPointFX2D example

SylvainBertrand edited this page Oct 11, 2021 · 3 revisions

Let's create a new point that highlights position of the center of mass. Start by clicking Add...:

Add YoGraphic

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

New YoPointFX2D

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

Create YoPointFX2D

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

Show overhead plotter

Note the presence of a check mark Check mark for most fields. This helps identifying whether a field is properly filled or not, in which case the check mark becomes Check mark. 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:

Set position

Let's modify the properties of the point:

Set position

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

Set position