From 9f8a3280d5a3e212ae57de25a6bf3937fb88e423 Mon Sep 17 00:00:00 2001 From: MysticKoko <132279944+MysticKoko@users.noreply.github.com> Date: Wed, 27 Nov 2024 02:15:57 +0200 Subject: [PATCH] Removed entity rotation on the Z axis, didnt look good --- .../client/model/entity/fish/HybridAquaticFishEntityModel.kt | 3 --- .../client/model/entity/shark/HybridAquaticSharkEntityModel.kt | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/fish/HybridAquaticFishEntityModel.kt b/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/fish/HybridAquaticFishEntityModel.kt index 02a67241..4b16a3f3 100644 --- a/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/fish/HybridAquaticFishEntityModel.kt +++ b/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/fish/HybridAquaticFishEntityModel.kt @@ -44,8 +44,5 @@ abstract class HybridAquaticFishEntityModel (private val pitch = MathHelper.clamp(MathHelper.lerp(deltaTime, animatable.prevPitch, animatable.pitch), -45f, 45f) body.rotX = pitch * -MathHelper.RADIANS_PER_DEGREE - - val yaw = MathHelper.clamp(MathHelper.lerp(deltaTime, animatable.prevYaw, animatable.yaw), -10f, 10f) - body.rotZ = yaw * -MathHelper.RADIANS_PER_DEGREE } } \ No newline at end of file diff --git a/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/shark/HybridAquaticSharkEntityModel.kt b/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/shark/HybridAquaticSharkEntityModel.kt index 454a5d59..b8d3ecb2 100644 --- a/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/shark/HybridAquaticSharkEntityModel.kt +++ b/src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/shark/HybridAquaticSharkEntityModel.kt @@ -36,8 +36,5 @@ abstract class HybridAquaticSharkEntityModel ( val pitch = MathHelper.clamp(MathHelper.lerp(deltaTime, animatable.prevPitch, animatable.pitch), -45f, 45f) body.rotX = pitch * -MathHelper.RADIANS_PER_DEGREE - - val yaw = MathHelper.clamp(MathHelper.lerp(deltaTime, animatable.prevYaw, animatable.yaw), -10f, 15f) - body.rotZ = yaw * -MathHelper.RADIANS_PER_DEGREE } } \ No newline at end of file