Eonirr

Untitled

Nov 18th, 2025
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. Vector3 velocity;
  3.  
  4. void Start()
  5. {
  6. velocity = Quaternion.Euler(0, 0, angle) * Vector3.right * speed;
  7. }
  8.  
  9. void Update()
  10. {
  11. velocity.y += gravity * Time.deltaTime;
  12. transform.position += velocity * Time.deltaTime;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment