addComponent
Class: simscape.multibody.RigidBody
Namespace: simscape.multibody
Description
addComponent(
adds a component object to the top level of the rb
,componentName
,attachmentFrame
,C
)simscape.multibody.RigidBody
object, rb
. The
componentName
argument specifies the name of the new component
object, the attachmentFrame
argument specifies the frame to which the
new component object is attached, and the C
argument is the object of
the new component object. A RigidBody
object can have only two types of
component objects: simscape.multibody.Solid
and simscape.multibody.RigidBody
.
Note that the addCompoment
method adds a copy of a component object. In
other words, after being passed to the addCompoment
method, any subsequent
modifications to the original component object do not affect the added object.
addComponent(___,
adds a component object to the connectionFrame
)rb
object via the specified connector,
connectionFrame
. Use the connectionFrame
argument when the added component object has more than one connectors.
Input Arguments
Version History
Introduced in R2022a