https://fr.mathworks.com/help/robotics/ref/capsuleapproximation.updategeometry.html
updateGeometry - Update geometry of collision capsule of rigid body - MATLAB
This MATLAB function updates the geometry of the first collision capsule of the rigid body with the new geometry parameters.
rigid bodyupdategeometrycollisioncapsule