From a0ac092787c040dce1c37431573820763bdbd87c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 16 Nov 2015 13:21:36 +1100 Subject: [PATCH] Make left click animation nicer. --- ClassicalSharp/Rendering/BlockHandRenderer.cs | 6 +++--- OpenTK/Platform/MacOS/CarbonGLNative.cs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ClassicalSharp/Rendering/BlockHandRenderer.cs b/ClassicalSharp/Rendering/BlockHandRenderer.cs index 6d8ea1e25..fa1310851 100644 --- a/ClassicalSharp/Rendering/BlockHandRenderer.cs +++ b/ClassicalSharp/Rendering/BlockHandRenderer.cs @@ -54,9 +54,9 @@ namespace ClassicalSharp.Renderers { if( !leftAnimation ) { fakePlayer.Position.Y = -(float)Math.Sin( animTime * animSpeed ); } else { - fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed ); - fakePlayer.Position.Y = 0.5f * (float)Math.Sin( animTime * animSpeed * 2 ); - fakePlayer.Position.Z = -0.9f * (float)Math.Sin( animTime * animSpeed ); + //fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed ); + fakePlayer.Position.Y = 0.3f * (float)Math.Sin( animTime * animSpeed * 2 ); + fakePlayer.Position.Z = -0.7f * (float)Math.Sin( animTime * animSpeed ); angleX = 20 * (float)Math.Sin( animTime * animSpeed * 2 ); SetupMatrices(); } diff --git a/OpenTK/Platform/MacOS/CarbonGLNative.cs b/OpenTK/Platform/MacOS/CarbonGLNative.cs index 1f92e5fe3..92e1310e8 100644 --- a/OpenTK/Platform/MacOS/CarbonGLNative.cs +++ b/OpenTK/Platform/MacOS/CarbonGLNative.cs @@ -373,6 +373,7 @@ namespace OpenTK.Platform.MacOS IntPtr thisEventWindow; API.GetEventWindowRef(inEvent, out thisEventWindow); CheckEnterLeaveEvents(thisEventWindow, mousePosInClient); + Console.WriteLine("EVENT: " + (MouseEventKind)evt.EventKind); switch ((MouseEventKind)evt.EventKind) {