Raycast: export exact pointing location (#6304)
* Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
This commit is contained in:
committed by
SmallJoker
parent
798724efea
commit
325bf68041
@@ -54,6 +54,10 @@ class ScriptApiItem
|
||||
friend class LuaRaycast;
|
||||
|
||||
bool getItemCallback(const char *name, const char *callbackname, const v3s16 *p = nullptr);
|
||||
void pushPointedThing(const PointedThing& pointed);
|
||||
/*!
|
||||
* Pushes a `pointed_thing` tabe to the stack.
|
||||
* \param hitpoint If true, the exact pointing location is also pushed
|
||||
*/
|
||||
void pushPointedThing(const PointedThing &pointed, bool hitpoint = false);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user