diff --git a/library/PolyVoxCore/include/Raycast.h b/library/PolyVoxCore/include/Raycast.h index dc2c9f98..09f74692 100644 --- a/library/PolyVoxCore/include/Raycast.h +++ b/library/PolyVoxCore/include/Raycast.h @@ -38,6 +38,9 @@ namespace PolyVox public: Raycast(Volume* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirection, RaycastResult& result); + void setStart(const Vector3DFloat& v3dStart); + void setDirection(const Vector3DFloat& v3dDirection); + void execute(); RaycastResult& m_result; diff --git a/library/PolyVoxCore/include/Raycast.inl b/library/PolyVoxCore/include/Raycast.inl index 437053ca..8817b330 100644 --- a/library/PolyVoxCore/include/Raycast.inl +++ b/library/PolyVoxCore/include/Raycast.inl @@ -32,6 +32,18 @@ namespace PolyVox { } + template + void Raycast::setStart(const Vector3DFloat& v3dStart) + { + m_v3dStart = v3dStart; + } + + template + void Raycast::setDirection(const Vector3DFloat& v3dDirection) + { + m_v3dDirection = v3dDirection; + } + template void Raycast::execute(void) {