From 3caad3f3c9e319ca67d63231e8c64b2ace855fff Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Sat, 23 Jul 2016 21:11:20 +0200 Subject: Expose getPointedThing to Lua This commit introduces Raycast, a Lua user object, which can be used to perform a raycast on the map. The ray is continuable, so one can also get hidden nodes (for example to see trough glass). --- src/clientobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clientobject.h') diff --git a/src/clientobject.h b/src/clientobject.h index f8075d65a..eeed2516d 100644 --- a/src/clientobject.h +++ b/src/clientobject.h @@ -44,8 +44,8 @@ public: virtual void updateLight(u8 light_at_pos){} virtual void updateLightNoCheck(u8 light_at_pos){} virtual v3s16 getLightPosition(){return v3s16(0,0,0);} - virtual aabb3f *getSelectionBox() { return NULL; } virtual bool getCollisionBox(aabb3f *toset) const { return false; } + virtual bool getSelectionBox(aabb3f *toset) const { return false; } virtual bool collideWithObjects() const { return false; } virtual v3f getPosition(){ return v3f(0,0,0); } virtual float getYaw() const { return 0; } -- cgit v1.2.3