forked from Mirrorlandia_minetest/minetest
Rotate wielded tool the right way and modify axe graphics accordingly
This commit is contained in:
parent
061d4b4202
commit
9a7471b740
Binary file not shown.
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 927 B |
Binary file not shown.
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 931 B |
Binary file not shown.
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 927 B |
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user