Main Content

viewpoint

Read space mouse coordinates in viewpoint format

Since R2025a

    Description

    p = viewpoint(spacemouse) reads the space mouse coordinates in viewpoint format in the 3D environment.

    Input Arguments

    collapse all

    Space mouse object that interfaces a space mouse input device with the 3D environment, specified as a sim3d.io.SpaceMouse object.

    Example: spaceMouse = sim3d.io.SpaceMouse(id=COM1)

    Output Arguments

    collapse all

    Position and orientation in the form of an axis and an angle, returned as a real vector. Translations and rotations are integrated. You can use these values as viewpoint coordinates in the 3D environment.

    Version History

    Introduced in R2025a