Main Content

Viewpoint Direction to VR Orientation

(To be removed) Convert viewpoint direction to virtual world orientation

Viewpoint Direction to VR Orientation will be removed in a future release. For more information, see Version History.

  • Viewpoint Direction to VRML Orientation block

Libraries:
Simulink 3D Animation / Utilities

Description

The Viewpoint Direction to VR Orientation takes a viewpoint direction (a 3 element vector) as input and outputs the corresponding virtual world viewpoint orientation (a 4-element rotation vector).

To open the Block Parameters dialog box, double-click the block.

Ports

Input

expand all

Viewpoint direction, specified as a 3-element vector.

Data Types: single | double

Output

expand all

Output rotation, returned as a 4-element vector in axis/angle notation, The first three elements specify the axis of rotation and the fourth element specifies the angle.

Extended Capabilities

Version History

Introduced in R2006a

collapse all

R2023b: To be removed

The Viewpoint Direction to VR Orientation will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.