Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question What is the best approach towards creating grenade launcher physics?

Discussion in 'Physics' started by billygamesinc, Nov 5, 2023.

  1. billygamesinc

    billygamesinc

    Joined:
    Dec 5, 2020
    Posts:
    288
    I want the trajectory to be consistent in terms of both initial force and bounce like the one shown in the video. Should I code the physics using something or would built in physics do the job? Skip to 2:57 for the physics demonstration.
     
  2. CortiWins

    CortiWins

    Joined:
    Sep 24, 2018
    Posts:
    150
    I would start with using the physics system.

    Standard physics is so much less work that trying standard physics and changing only if you can't satisfy your needs is probably worth it. And for comparison, you should have a standard version anyway if you build a custom one.
     
    billygamesinc likes this.
  3. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,856
    The video looks like standard rigidbody physics to me. Any rigidbody physics engine -like Unity's built in one- will do a great job at this since it's a really simple simulation: ballistic trajectory and collision w/restitution (bounce).
     
    billygamesinc likes this.