Skip to content
Snippets Groups Projects
Commit 9a7471b7 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Rotate wielded tool the right way and modify axe graphics accordingly

parent 061d4b42
No related branches found
No related tags found
No related merge requests found
data/tool_steelaxe.png

209 B | W: | H:

data/tool_steelaxe.png

927 B | W: | H:

data/tool_steelaxe.png
data/tool_steelaxe.png
data/tool_steelaxe.png
data/tool_steelaxe.png
  • 2-up
  • Swipe
  • Onion skin
data/tool_stoneaxe.png

193 B | W: | H:

data/tool_stoneaxe.png

931 B | W: | H:

data/tool_stoneaxe.png
data/tool_stoneaxe.png
data/tool_stoneaxe.png
data/tool_stoneaxe.png
  • 2-up
  • Swipe
  • Onion skin
data/tool_woodaxe.png

190 B | W: | H:

data/tool_woodaxe.png

927 B | W: | H:

data/tool_woodaxe.png
data/tool_woodaxe.png
data/tool_woodaxe.png
data/tool_woodaxe.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -208,7 +208,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
#if 1
f32 bobknob = 1.2;
f32 bobtmp = sin(pow(bobfrac, bobknob) * PI);
f32 bobtmp2 = cos(pow(bobfrac, bobknob) * PI);
//f32 bobtmp2 = cos(pow(bobfrac, bobknob) * PI);
v3f bobvec = v3f(
0.3 * bobdir * sin(bobfrac * PI),
......@@ -265,7 +265,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
// Position the wielded item
v3f wield_position = v3f(45, -35, 65);
v3f wield_rotation = v3f(90, -90, -90);
v3f wield_rotation = v3f(-100, 110, -100);
if (m_digging_button != -1)
{
f32 digfrac = m_digging_anim;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment