Click or drag to resize
SoDraggerGetMotionMatrix Method

Get the motion matrix.

Namespace: OIV.Inventor.Draggers
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public SbMatrix GetMotionMatrix()

Return Value

Type: SbMatrix
Remarks

The motion matrix places the dragger relative to its parent space.

Generally, it is better to look in a dragger's fields to find out about its state. For example, looking at the 'translation' field of an OIV.Inventor.Draggers.SoTranslate1Dragger is easier than extracting the translation from its motion matrix. However for some complex draggers, e.g. OIV.Inventor.Draggers.SoCenterballDragger, it is not possible to reconstruct the internal matrix from the external fields. This method is useful in that case.

See Also