Sphere
A 3D sphere that captures colliders that have ball-like properties.

| Parameter | Type | Description | 
|---|---|---|
type | string | The Sphere shape class | 
name | string | A user-defined name of the shape | 
frame | string | The coordinateshe frame this shape belongs to. Can either be world or robot frame | 
physical | boolean | True if the collision with this shape is phyiscal, else false | 
radius | float | The length of radius of the sphere | 
localTransform | isometry consisted of translation and rotation | Defines the position and rotation of the shape relevant to the specific frame | 
- Javascript
 - Python
 - Rust
 
let shape = {
  type:'Sphere',
  name:'bouncy ball',
  frame: 'world',
  physical: true,
  radius:0.1,
  localTransform: {translation:[0.0,0.0,0.0],rotation:[0.0,0.0,0.0,1.0]} // [x, y, z, w] ordering for quaternion
  }
shape = SphereShape(
  name="bouncy ball",
  frame='world',
  physical=True,
  radius=0.1,
  local_transform=Transform.identity())
let transform = Isometry3::from_parts(
         Translation3::new(
             0.0,
             0.0,
             0.0,
         ),
         UnitQuaternion::from_quaternion(Quaternion::new(
             0.0,
             0.0,
             -0.7069999677447771,
             0.7072135784958345,
         )),
     );
let sphere = Shape::Sphere(SphereShape::new(
             "sphere".to_string(),
             "world".to_string(),
             true,
             0.1,
             transform,     
     ));