diff options
Diffstat (limited to '')
-rw-r--r-- | src/World.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/World.hpp b/src/World.hpp index 50dfa31..2c80b31 100644 --- a/src/World.hpp +++ b/src/World.hpp @@ -19,6 +19,12 @@ class PacketMultiBlockChange; class PacketUnloadChunk; class StreamInput; +struct RaycastResult { + bool isHit; + Vector hitBlock; + VectorF hitPos; +}; + class World { int dimension = 0; @@ -55,7 +61,7 @@ public: const Section &GetSection(Vector sectionPos); - Vector Raycast(glm::vec3 position, glm::vec3 direction, float &distance); + RaycastResult Raycast(glm::vec3 position, glm::vec3 direction); void UpdatePhysics(float delta); |