Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.21 KB

File metadata and controls

39 lines (27 loc) · 2.21 KB

TrackWheel

Derived from Group.

TrackWheel {
  SFVec2f position 0 0    # any vector
  SFFloat radius   0.1    # [0, inf)
  SFBool  inner    TRUE   # {TRUE, FALSE}
}

Description

The TrackWheel node is a utility node helping the setup of a wheel of a track system defined by a Track node.

By default this node doesn't have any graphical shape and the shape of the wheel has to be defined inside the children field of the TrackWheel node. All the children nodes will be automatically translated at the relative location specified in the position field and automatically rotated along the z-axis based on the speed of the parent Track node. Additionally this node is used by the parent Track node to compute the track belt path used for geometries animation and representing the track itself. Note that in order to automatically generate the track belt, the geometries animation has to be enabled, i.e. the animatedGeometry field of the parent Track node has to be defined and the geometriesCount field has to be greater than 0.

The TrackWheel node is a pure graphical object and doesn't have any physical behavior. All the physical properties are defined in the Track node.

A TrackWheel node can only be inserted in the children field of a Track node.

Field Summary

The fields of the TrackWheel are mainly used to automatically generate the track belt path in case the geometries animation is defined in the Track node:

  • position: defines the position of the wheel on the x-y plane of the Track node coordinate system. The positionfield is also used to compute the relative translation of the children nodes.

  • radius: defines the radius of the wheel.

  • inner: defines the location of the wheel with respect to the track belt. If the value is TRUE then the wheel is inside the track belt, otherwise it is outside. The value of this field also affects the automatic rotation direction of the user-defined wheel shape. If TRUE, the shape will rotate in the same direction of the track, otherwise it will rotate in the opposite direction.