Click or drag to resize
SoDraggerGetMotionMatrix Method

Get the motion matrix.

Namespace: OIV.Inventor.Draggers
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
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