diff --git a/trunk/fcl/include/fcl/collision_object.h b/trunk/fcl/include/fcl/collision_object.h index dabaf4d4bc4f5ade612a8643397897d79dcdb484..77f603bd52c0ed4d35d9ac038a6989d54014fffb 100644 --- a/trunk/fcl/include/fcl/collision_object.h +++ b/trunk/fcl/include/fcl/collision_object.h @@ -61,11 +61,24 @@ public: virtual void computeLocalAABB() = 0; + void* getUserData() const + { + return user_data; + } + + void setUserData(void *data) + { + user_data = data; + } + /** AABB center in local coordinate */ Vec3f aabb_center; /** AABB radius */ BVH_REAL aabb_radius; + + /** pointer to user defined data specific to this object */ + void *user_data; }; class CollisionObject