Skip to content

Instantly share code, notes, and snippets.

@StillManic
Created July 8, 2015 20:53
Show Gist options
  • Save StillManic/de9a253e732a1443f3dc to your computer and use it in GitHub Desktop.
Save StillManic/de9a253e732a1443f3dc to your computer and use it in GitHub Desktop.
double d3 = EntityRenderer.thirdPersonDistanceTemp + (EntityRenderer.thirdPersonDistance - EntityRenderer.thirdPersonDistanceTemp) * partialTicks;
double d4 = (double)(-MathHelper.sin(entity.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(entity.rotation / 180.0F * (float)Math.PI)) * d3;
double d5 = (double)(MathHelper.cos(entity.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(entity.rotation / 180.0F * (float)Math.PI)) * d3;
double d6 = (double)(-MathHelper.sin(entity.rotation / 180.0F * (float)Math.PI)) * d3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment