This content is specific to Simscape™ Multibody™ First Generation software. First-generation features are slated to be deprecated and should be avoided.
In this example, you model a simple body using the Body block. You visualize the body as an ellipsoid whose dimensions depend on the body’s mass and inertia tensor.
Add these blocks from the Simscape Multibody First Generation (1G) library onto a new model:
In the Body block dialog box, select the Show Port checkbox for the CG coordinate system and clear those for the CS1 and CS2 coordinate systems. You can deleted these coordinate systems.
In the Ground block dialog box, select the Show Machine Environment port checkbox.
Connect the blocks as shown in the figure.
Select Simulation > Configuration Parameters.
In the Simscape Multibody First Generation pane, select the Display machines after updating diagram. This option ensures the visualization utility opens when you update or simulate your model.
Select Simulation > Update Diagram.
In the visualization menu, select Model > Body Geometries > Ellipsoids. The visualization utility changes the body geometry to a sphere.
In the visualization toolstrip, select the Fit to View button. The visualization utility adjusts the zoom level to show the body in the window confines.
In the Body block dialog box, specify these parameters:
Update the diagram. With the inertia tensor no longer symmetrical, the visualization utility now shows the body as an elongated ellipsoid.
To apply a rotation transform between the body CG coordinate system and the world coordinate system, see Rotate Simple Body.