Jump to content
  • Advertisement
Sign in to follow this  
Florian22222

Grenade Throw Preview

This topic is 2226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey!

I am doing a platformer in Unity where you can throw grenades. So it´s not obvious where the grenade will land etc.
I want to make a "preview" where the grenade will fly.
Is there an easier way then simulating the grenade shot every single update?

I hope this is the right subforum.

Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
If you only have gravity act on it you could just draw the trajectory since its a simple quadratic curve without actually simulating.

Share this post


Link to post
Share on other sites
After some research i got an answer. I will break it down into some segments.
like simulating 200ms each segment. i hope my android phone got enough cpu power for this ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!