Skip to content

Instantly share code, notes, and snippets.

@Corosauce
Created May 18, 2014 03:25
Show Gist options
  • Save Corosauce/5151b91d7d3dc91aaa39 to your computer and use it in GitHub Desktop.
Save Corosauce/5151b91d7d3dc91aaa39 to your computer and use it in GitHub Desktop.
public void renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7)
{
par3 = MathHelper.cos(rotationYaw * (float)Math.PI / 180.0F);
par5 = MathHelper.sin(rotationYaw * (float)Math.PI / 180.0F);
par6 = -par5 * MathHelper.sin(rotationPitch * (float)Math.PI / 180.0F);
par7 = par3 * MathHelper.sin(rotationPitch * (float)Math.PI / 180.0F);
par4 = MathHelper.cos(rotationPitch * (float)Math.PI / 180.0F);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment