Main Content

copy

Create selective deep copy of rigid body

Description

copyObj = copy(bodyObj) creates a selective deep copy of the rigid body object with the same properties. Some internal properties, like Parent and Children, will be reset to default instead of being copied.

Input Arguments

collapse all

RigidBody object, specified as a handle. Create a rigid body object using rigidBody.

Output Arguments

collapse all

RigidBody object, returned as a handle. Create a rigid body object using rigidBody.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2016b