#include <simgear/scene/material/mat.hxx>
#include "BVHVisitor.hxx"
+#include "BVHNode.hxx"
namespace simgear {
_lineSegment(lineSegment),
_time(t),
_material(0),
+ _id(0),
_haveHit(false)
{ }
virtual ~BVHLineSegmentVisitor()
{ return _angularVelocity; }
const SGMaterial* getMaterial() const
{ return _material; }
+ BVHNode::Id getId() const
+ { return _id; }
virtual void apply(BVHGroup& group);
virtual void apply(BVHTransform& transform);
virtual void apply(BVHStaticGeometry& node);
virtual void apply(const BVHStaticBinary&, const BVHStaticData&);
- virtual void apply(const BVHStaticLeaf&, const BVHStaticData&);
virtual void apply(const BVHStaticTriangle&, const BVHStaticData&);
protected:
SGVec3d _linearVelocity;
SGVec3d _angularVelocity;
const SGMaterial* _material;
+ BVHNode::Id _id;
bool _haveHit;
};