From 5231db75aa1affacbce3071eb738ee35d865d39f Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Fri, 21 Oct 2022 21:16:34 -0400 Subject: [PATCH] spin arrow when flying --- api.lua | 2 +- models/x_bows_arrow.obj | 176 ++++++++++++++++++++-------------------- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/api.lua b/api.lua index 6f74c2e..14db18a 100644 --- a/api.lua +++ b/api.lua @@ -911,7 +911,7 @@ function XBowsEntityDef.on_step(self, selfObj, dtime) selfObj.object:set_rotation({ x = pitch, y = v_rotation.y, - z = v_rotation.z + z = v_rotation.z + math.pi / 2 }) end diff --git a/models/x_bows_arrow.obj b/models/x_bows_arrow.obj index e04a169..11780f0 100644 --- a/models/x_bows_arrow.obj +++ b/models/x_bows_arrow.obj @@ -2,94 +2,94 @@ # www.blender.org mtllib arrow2.mtl o arrow2 -v -0.007500 -0.030000 -0.112500 -v -0.007500 -0.015000 -0.180000 -v -0.007500 -0.015000 -0.157500 -v -0.007500 0.015000 0.180000 -v -0.007500 0.015000 0.090000 -v -0.022500 -0.000000 -0.112500 -v -0.037500 -0.000000 -0.112500 -v -0.037500 0.015000 -0.180000 -v -0.037500 -0.000000 -0.180000 -v 0.022500 0.015000 -0.157500 -v -0.007500 0.045000 -0.112500 -v 0.007500 -0.015000 -0.157500 -v 0.007500 -0.015000 0.090000 -v 0.007500 -0.015000 -0.112500 -v 0.007500 -0.000000 0.180000 -v 0.007500 -0.000000 0.157500 -v 0.022500 -0.000000 0.157500 -v 0.022500 -0.000000 0.090000 -v 0.022500 -0.000000 -0.090000 -v 0.022500 0.015000 -0.090000 -v 0.037500 -0.000000 -0.112500 -v 0.037500 0.015000 -0.112500 -v -0.022500 0.015000 -0.157500 -v 0.007500 -0.000000 -0.180000 -v 0.007500 0.015000 -0.180000 -v 0.037500 0.015000 -0.180000 -v 0.007500 0.030000 0.157500 -v 0.007500 0.030000 -0.157500 -v 0.007500 -0.030000 -0.112500 -v -0.007500 -0.015000 0.157500 -v 0.007500 -0.015000 0.157500 -v -0.007500 -0.015000 -0.090000 -v 0.007500 -0.015000 -0.090000 -v -0.022500 0.015000 0.157500 -v 0.022500 0.015000 0.157500 -v -0.022500 -0.000000 -0.090000 -v -0.007500 -0.000000 -0.090000 -v 0.007500 -0.000000 -0.090000 -v -0.037500 0.015000 -0.112500 -v 0.022500 0.015000 -0.112500 -v -0.007500 0.015000 0.157500 -v -0.007500 0.030000 0.157500 -v -0.007500 0.030000 -0.090000 -v -0.007500 0.030000 -0.112500 -v 0.007500 0.030000 -0.112500 -v 0.007500 -0.015000 -0.180000 -v -0.007500 -0.000000 -0.157500 -v 0.007500 -0.000000 -0.157500 -v 0.007500 -0.000000 0.090000 -v 0.022500 0.015000 0.090000 -v -0.022500 -0.000000 -0.180000 -v 0.022500 -0.000000 -0.180000 -v 0.022500 0.015000 -0.180000 -v 0.007500 0.030000 0.090000 -v 0.007500 0.015000 0.090000 -v -0.007500 0.015000 -0.157500 -v 0.007500 0.045000 -0.180000 -v -0.007500 -0.030000 -0.180000 -v 0.007500 -0.030000 -0.180000 -v -0.007500 -0.015000 0.090000 -v -0.007500 -0.015000 -0.112500 -v -0.007500 -0.000000 0.180000 -v -0.007500 -0.000000 0.157500 -v -0.022500 -0.000000 0.157500 -v -0.022500 -0.000000 0.090000 -v -0.007500 -0.000000 0.090000 -v 0.022500 -0.000000 -0.112500 -v -0.022500 -0.000000 -0.157500 -v -0.007500 -0.000000 -0.180000 -v 0.022500 -0.000000 -0.157500 -v 0.037500 -0.000000 -0.180000 -v -0.007500 0.030000 -0.157500 -v -0.007500 0.030000 -0.180000 -v 0.007500 0.030000 -0.180000 -v 0.007500 0.015000 0.180000 -v 0.007500 0.015000 0.157500 -v -0.022500 0.015000 0.090000 -v 0.007500 0.015000 -0.090000 -v -0.007500 0.015000 -0.090000 -v -0.022500 0.015000 -0.090000 -v -0.022500 0.015000 -0.112500 -v -0.022500 0.015000 -0.180000 -v 0.007500 0.015000 -0.157500 -v -0.007500 0.015000 -0.180000 -v -0.007500 0.030000 0.090000 -v 0.007500 0.030000 -0.090000 -v 0.007500 0.045000 -0.112500 -v -0.007500 0.045000 -0.180000 +v -0.007500 -0.037500 -0.112500 +v -0.007500 -0.022500 -0.180000 +v -0.007500 -0.022500 -0.157500 +v -0.007500 0.007500 0.180000 +v -0.007500 0.007500 0.090000 +v -0.022500 -0.007500 -0.112500 +v -0.037500 -0.007500 -0.112500 +v -0.037500 0.007500 -0.180000 +v -0.037500 -0.007500 -0.180000 +v 0.022500 0.007500 -0.157500 +v -0.007500 0.037500 -0.112500 +v 0.007500 -0.022500 -0.157500 +v 0.007500 -0.022500 0.090000 +v 0.007500 -0.022500 -0.112500 +v 0.007500 -0.007500 0.180000 +v 0.007500 -0.007500 0.157500 +v 0.022500 -0.007500 0.157500 +v 0.022500 -0.007500 0.090000 +v 0.022500 -0.007500 -0.090000 +v 0.022500 0.007500 -0.090000 +v 0.037500 -0.007500 -0.112500 +v 0.037500 0.007500 -0.112500 +v -0.022500 0.007500 -0.157500 +v 0.007500 -0.007500 -0.180000 +v 0.007500 0.007500 -0.180000 +v 0.037500 0.007500 -0.180000 +v 0.007500 0.022500 0.157500 +v 0.007500 0.022500 -0.157500 +v 0.007500 -0.037500 -0.112500 +v -0.007500 -0.022500 0.157500 +v 0.007500 -0.022500 0.157500 +v -0.007500 -0.022500 -0.090000 +v 0.007500 -0.022500 -0.090000 +v -0.022500 0.007500 0.157500 +v 0.022500 0.007500 0.157500 +v -0.022500 -0.007500 -0.090000 +v -0.007500 -0.007500 -0.090000 +v 0.007500 -0.007500 -0.090000 +v -0.037500 0.007500 -0.112500 +v 0.022500 0.007500 -0.112500 +v -0.007500 0.007500 0.157500 +v -0.007500 0.022500 0.157500 +v -0.007500 0.022500 -0.090000 +v -0.007500 0.022500 -0.112500 +v 0.007500 0.022500 -0.112500 +v 0.007500 -0.022500 -0.180000 +v -0.007500 -0.007500 -0.157500 +v 0.007500 -0.007500 -0.157500 +v 0.007500 -0.007500 0.090000 +v 0.022500 0.007500 0.090000 +v -0.022500 -0.007500 -0.180000 +v 0.022500 -0.007500 -0.180000 +v 0.022500 0.007500 -0.180000 +v 0.007500 0.022500 0.090000 +v 0.007500 0.007500 0.090000 +v -0.007500 0.007500 -0.157500 +v 0.007500 0.037500 -0.180000 +v -0.007500 -0.037500 -0.180000 +v 0.007500 -0.037500 -0.180000 +v -0.007500 -0.022500 0.090000 +v -0.007500 -0.022500 -0.112500 +v -0.007500 -0.007500 0.180000 +v -0.007500 -0.007500 0.157500 +v -0.022500 -0.007500 0.157500 +v -0.022500 -0.007500 0.090000 +v -0.007500 -0.007500 0.090000 +v 0.022500 -0.007500 -0.112500 +v -0.022500 -0.007500 -0.157500 +v -0.007500 -0.007500 -0.180000 +v 0.022500 -0.007500 -0.157500 +v 0.037500 -0.007500 -0.180000 +v -0.007500 0.022500 -0.157500 +v -0.007500 0.022500 -0.180000 +v 0.007500 0.022500 -0.180000 +v 0.007500 0.007500 0.180000 +v 0.007500 0.007500 0.157500 +v -0.022500 0.007500 0.090000 +v 0.007500 0.007500 -0.090000 +v -0.007500 0.007500 -0.090000 +v -0.022500 0.007500 -0.090000 +v -0.022500 0.007500 -0.112500 +v -0.022500 0.007500 -0.180000 +v 0.007500 0.007500 -0.157500 +v -0.007500 0.007500 -0.180000 +v -0.007500 0.022500 0.090000 +v 0.007500 0.022500 -0.090000 +v 0.007500 0.037500 -0.112500 +v -0.007500 0.037500 -0.180000 vt 0.533333 0.533333 vt 0.000000 0.600000 vt 0.533333 0.600000