18#ifndef _SIMBODY_SPHERE_SHAPE_HH_
19#define _SIMBODY_SPHERE_SHAPE_HH_
48 gzerr <<
"Sphere shape does not support negative radius\n";
51 if (ignition::math::equal(_radius, 0.0))
56 gzwarn <<
"Setting sphere shape's radius to zero \n";
60 SphereShape::SetRadius(_radius);
62 bParent = boost::dynamic_pointer_cast<SimbodyCollision>(
63 this->collisionParent);
CollisionPtr collisionParent
This shape's collision parent.
Definition: Shape.hh:79
Simbody sphere collision.
Definition: SimbodySphereShape.hh:34
virtual void SetRadius(double _radius)
Set the size.
Definition: SimbodySphereShape.hh:44
SimbodySphereShape(CollisionPtr _parent)
Constructor.
Definition: SimbodySphereShape.hh:37
virtual ~SimbodySphereShape()
Destructor.
Definition: SimbodySphereShape.hh:41
Sphere collision shape.
Definition: SphereShape.hh:40
virtual void SetRadius(double _radius)
Set the size.
#define gzerr
Output an error message.
Definition: Console.hh:50
#define gzwarn
Output a warning message.
Definition: Console.hh:47
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:44
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
Forward declarations for the common classes.
Definition: Animation.hh:27