Skip to content

Commit

Permalink
Removed entity rotation on the Z axis, didnt look good
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticKoko committed Nov 27, 2024
1 parent bf416fc commit 9f8a328
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ abstract class HybridAquaticFishEntityModel<T: HybridAquaticFishEntity> (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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,5 @@ abstract class HybridAquaticSharkEntityModel<T : HybridAquaticSharkEntity> (

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
}
}

0 comments on commit 9f8a328

Please sign in to comment.