https://se.mathworks.com/help/robotics/ref/capsuleapproximation.updatepose.html
updatePose - Update pose of collision capsule of rigid body - MATLAB
This MATLAB function updates the pose of the first collision capsule of the rigid body with the new pose.
rigid bodyupdateposecollisioncapsule