Model Vector defines a vector that is dynamically visualized at the defined location (see variables below). The vector length does not represent a physical length, but a different 3-dimensional quantity (such as force, torque, speed, …), except for RelativePosition. That allows the vectors of similar quantities to be scaled appropriately during post-processing. This is useful, even for RelativePosition and in that case to disable or exaggerate the relative positions.
The dialog variables R
, r
, coordinates
, color
,
specularCoefficient
, quantity
, headAtOrigin
, and twoHeadedArrow
are declared as (time varying) input variables.
If the default equation is not appropriate, a corresponding
modifier equation has to be provided in the
model where a Vector instance is used, e.g., in the form
Visualizers.Advanced.Vector vectorForce(coordinates = {sin(time),cos(time),0});
Variable color
is an Integer vector with 3 elements,
{r, g, b}, and specifies the color of the shape.
{r, g, b} are the "red", "green" and "blue" color parts.
Note, r, g and b are given in the range 0 … 255.
The predefined type
MultiBody.Types.Color
contains a menu definition of the colors used in the MultiBody
library together with a color editor.