18 #ifndef _SIMBODY_BOXSHAPE_HH_    19 #define _SIMBODY_BOXSHAPE_HH_    45                 if (_size.
x < 0 || _size.
y < 0 || _size.
z < 0)
    47                   gzerr << 
"Box shape does not support negative size\n";
    56                   gzwarn << 
"Setting box shape's x to zero \n";
    61                   gzwarn << 
"Setting box shape's y to zero \n";
    66                   gzwarn << 
"Setting box shape's z to zero \n";
    74                     this->collisionParent);
 double x
X location. 
Definition: Vector3.hh:311
 
double y
Y location. 
Definition: Vector3.hh:314
 
Forward declarations for the common classes. 
Definition: Animation.hh:33
 
The Vector3 class represents the generic vector containing 3 elements. 
Definition: Vector3.hh:39
 
void SetSize(const math::Vector3 &_size)
Set the size of the box. 
Definition: SimbodyBoxShape.hh:43
 
#define gzwarn
Output a warning message. 
Definition: Console.hh:47
 
#define gzerr
Output an error message. 
Definition: Console.hh:50
 
Simbody box collision. 
Definition: SimbodyBoxShape.hh:34
 
bool equal(const T &_a, const T &_b, const T &_epsilon=1e-6)
check if two values are equal, within a tolerance 
Definition: Helpers.hh:171
 
double z
Z location. 
Definition: Vector3.hh:317
 
Simbody collisions. 
Definition: SimbodyCollision.hh:41
 
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:44
 
Box geometry primitive. 
Definition: BoxShape.hh:37
 
SimbodyBoxShape(CollisionPtr _parent)
Constructor. 
Definition: SimbodyBoxShape.hh:37
 
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:104
 
virtual ~SimbodyBoxShape()
Destructor. 
Definition: SimbodyBoxShape.hh:40
 
virtual void SetSize(const math::Vector3 &_size)
Set the size of the box.