From c8f024f97a6c4c12fe7c5f9e0f97ac2a4662871a Mon Sep 17 00:00:00 2001 From: TheTermos <55103816+TheTermos@users.noreply.github.com> Date: Thu, 7 Nov 2019 20:47:59 +0100 Subject: [PATCH] Update mobkit_api.txt --- mobkit_api.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobkit_api.txt b/mobkit_api.txt index 35afe16..7f8f95f 100644 --- a/mobkit_api.txt +++ b/mobkit_api.txt @@ -319,6 +319,9 @@ function mobkit.isnear3d(p1,p2,thresh) function mobkit.dir_to_rot(v,rot) -- converts a 3d vector v to rotation like in set_rotation() object method -- rot (optional) is current object rotation + +function mobkit.rot_to_dir(rot) + -- converts minetest rotation vector (pitch,yaw,roll) to direction unit vector function mobkit.is_alive(thing) -- non essential, checks if thing exists in the world and is alive