Main Content

ASim3dActor

Abstract class to use as a base class for user-defined Unreal Engine C++ or blueprint actors

Since R2020b

Description

ASim3dActor is an abstract class that you can use as a base class for user-defined Unreal Engine® C++ or blueprint actors.

The base classes are inherently synchronized during co-simulation with a Simulink® model. Additionally, the Simulation 3D Actor Transform Set block can control the base class. To extend behavior of ASim3dActor, you can use the message interface functions to override the class methods so they send and receive messages to and from a model.

ASim3dActor is included in the Vehicle Dynamics Blockset™ Interface for Unreal Engine Projects. For information about the support package, see Customize 3D Scenes for Vehicle Dynamics Simulations.

Properties

expand all

This property is protected. It is used in the derived C++ class. Value is set by the Simulation 3D Actor Transform Set block.

Actor translation along world X-, Y, and Z- axes, respectively, in m. Array dimensions are number of parts per actor-by-3.

Data Types: float

This property is protected. It is used in the derived C++ class. Value is set by the Simulation 3D Actor Transform Set block.

Actor rotation across a [-pi/2, pi/2] range about world X-, Y, and Z- axes, respectively, in rad. Array dimensions are number of parts per actor-by-3.

Data Types: float

This property is protected. It is used in the derived C++ class. Value is set by the Simulation 3D Actor Transform Set block.

Actor scale. Array dimensions are number of parts per actor-by-3.

Data Types: float

Object Functions

Sim3dSetupC++ method that sets up actor in Unreal Engine 3D simulation
Sim3dStepC++ method that steps actor in Unreal Engine 3D simulation
Sim3dReleaseC++ method that releases actor in Unreal Engine 3D simulation

Version History

Introduced in R2020b