Main Content

sim3d.sensors.MainCamera

Define perspective in Unreal executable window

Since R2022b

    Description

    Use the sim3d.sensors.MainCamera class to define a perspective in the Unreal® executable window using APlayerController::SetViewTarget.

    Creation

    The sim3d.sensors.MainCamera class is created by the createViewport function of the sim3d.World class and stored in the Viewports property.

    Properties

    expand all

    Parent of actor, specified as a handle to the parent sim3d.Actor object.

    Children of actor, specified as a handle to the children sim3d.Actor object.

    This property is read only.

    Parent world method handle, specified as a handle to the sim3d.World object.

    Unique ID of the sensor, specified as a real positive scalar.

    Data Types: uint32

    Translation of sensor relative to the parent vehicle, specified as a real 1-by-3 vector, in meters.

    Rotation (roll, pitch, yaw) of sensor relative to the parent vehicle, specified as a real 1-by-3 vector, in radians.

    Version History

    Introduced in R2022b