Skip to content

YoArrowFX3D example

SylvainBertrand edited this page Nov 19, 2019 · 4 revisions

Let's create a new force vector for the right foot. Start by clicking Add...:

Add YoVariable
In the new dialog, select _YoArrowFX3D_:
Select YoArrowFX3D
Let's name the new graphic "Right foot force":
Select YoArrowFX3D
Click _Create_. A new editor becomes available on the right side while a new blue arrow appears in the 3D view:
Select YoArrowFX3D

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 origin of the arrow to the point of application for the force on the right foot. In the Search Origin look for "DesiredExternalWrenchr_footPointOfApplication" and press Enter, the editor should be updated as follows:

Set arrow's origin
Note that the arrow updated its origin in the 3D view to match the position referred by the `YoVariable`s. Also note that the coordinates of the arrow's origin can also be set individually.

Let's do the same for the arrow's direction. Look for "DesiredExternalWrenchr_footForce":

Set arrow's direction
Now the arrow updated its direction and, in this example, is now hidden inside Atlas' shin.

Let's modify the size properties of the arrow as follows:

Set arrow's direction
By selecting the scale option for the length, the length of the arrow is now set to be proportional to the magnitude of "DesiredExternalWrenchr_footForce", i.e. in this example the length of the arrow is now proportional to the magnitude of the force applied on the right foot, the field _Body length_ and _Head length_ becomes multipliers.

After saving this new YoGraphic, the arrow in the 3D view tracks the force for the right foot:

Set arrow's direction

Clone this wiki locally