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);
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:318
SimbodyBoxShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyBoxShape.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
virtual ~SimbodyBoxShape()
Destructor.
Definition: SimbodyBoxShape.hh:40
virtual void SetSize(const math::Vector3 &_size)
Set the size of the box.
double x
X location.
Definition: Vector3.hh:311
#define gzwarn
Output a warning message.
Definition: Console.hh:46
double z
Z location.
Definition: Vector3.hh:317
#define gzerr
Output an error message.
Definition: Console.hh:49
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
Simbody collisions.
Definition: SimbodyCollision.hh:41
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:96
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:41
Box geometry primitive.
Definition: BoxShape.hh:37
void SetSize(const math::Vector3 &_size)
Set the size of the box.
Definition: SimbodyBoxShape.hh:43
double y
Y location.
Definition: Vector3.hh:314