Click or drag to resize
AB4D logo

MouseCameraControllerIsRotationDirectionAdjusted Property

Gets or sets Boolean that specifies if rotation direction is based on current mouse position and attitude angle. When false (by default), moving the mouse to the right always increases the heading regardless of mouse position and attitude angle. When true, the rotation direction is based on the current mouse position in the 3D scene and current attitude angle.

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public bool IsRotationDirectionAdjusted { get; set; }

Property Value

Boolean
Remarks

IsRotationDirectionAdjusted gets or sets Boolean that specifies if rotation direction is based on current mouse position and attitude angle.

When IsRotationDirectionAdjusted is false (by default), moving the mouse to the right always increases the heading regardless of mouse position and attitude angle. When true, the rotation direction is based on the current mouse position in the 3D scene and current attitude angle.

For examples:
Center of rotation is in the middle of the window and your camera has Attitude set to -30 (looking slightly down to the object):
If you drag the mouse below the center of the window from left to right, the Heading of the camera will increase to move the rotated objects into the same direction as the mouse is moved.
If you do the same mouse drag but this time above the center of the window, the Heading will decrease (though you are dragging from left to right) - this will move the rotated objects into the correct direction.

If Attitude is set to angles between 0 to 180 degrees, the Heading change must be revered to preserve the "correct" object rotation.

When IsRotationDirectionAdjusted is set to false, the Heading always increases when mouse is moved from left to right (regardlees of Attitude and mouse position).

See Also