Posted March 4, 20223 yr i know is weird, for example i made a 3d model of a gun, if i right click the gun rotates up a bit, if i shift the gun moves down a bit, that kind of animations but i dont want 3 guns each of them with a different animation in unity i made this revolver's public GameObject revolver; IEnumerator animation() { revolver.transform.Rotate(new Vector3(0,3,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,6,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,9,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,12,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,-3,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,-6,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,-9,0)); yield return new WaitForSeconds(0.01f); revolver.transform.Rotate(new Vector3(0,-12,0)); } void AnimateRevolver() { StartCoroutine(animation()); } when i want i call "AnimateRevolver" (again in unity), so i want to make something similar in java minecraft
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.