Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Grenade Throw Preview

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 IceBreaker23   Members   

618
Like
0Likes
Like

Posted 10 June 2012 - 01:58 PM

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!

#2 japro   Members   

887
Like
0Likes
Like

Posted 10 June 2012 - 02:02 PM

If you only have gravity act on it you could just draw the trajectory since its a simple quadratic curve without actually simulating.

#3 IceBreaker23   Members   

618
Like
0Likes
Like

Posted 10 June 2012 - 03:34 PM

That was the thing i was looking for. thanks!
how should i do collision then? I want the line to stop on collision..


#4 IceBreaker23   Members   

618
Like
0Likes
Like

Posted 10 June 2012 - 03:43 PM

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 ;)

#5 Waterlimon   Members   

4398
Like
0Likes
Like

Posted 10 June 2012 - 05:06 PM

It might be also possible to "ray"cast with the algorithm for the path somehow, it might woek smoother.

o3o





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.