Main Content

simscape.multibody.Sphere Class

Namespace: simscape.multibody
Superclasses: simscape.multibody.Geometry

Create spherical geometry

Since R2022a

Description

Use an object of the simscape.multibody.Sphere class to represent spherical geometry. The reference frame of the sphere is located at the centroid of the sphere. To specify the dimensions of the geometry, use the Radius property.

Example of spherical geometry

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

sphere = simscape.multibody.sphere creates a spherical geometry with default values.

sphere = simscape.multibody.Sphere(radius) creates a spherical geometry with the specified radius.

Properties

expand all

Radius of the spherical geometry, specified a simscape.Value object that represents a positive scalar with a unit of length.

Radius of sphere

Example: simscape.Value(85,"mm")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a