|
hey every one... i'm using raycast to shoot with my sniper, but it goes in a direct line... i want to make the gravity effect, but i don't know how to do it... if i could make a curved ray would be perfect, but i don't know how to do it. Some one can help me with this? Thanks guys :)
(comments are locked)
|
|
Do a series of short raycasts, and alter the angle slightly for each one so that it starts heading down over a longer distance. So basically it's approximately a curve, broken up into a number of straight segments. ok i think on that, but i was not sure with the performance... i will try that. Btw, it will take much process? Thanks
Apr 10 '11 at 07:47 PM
Leonardo T S
It's naturally more expensive than using a single raycast, but since this is for a sniper rifle, you'd presumably only be doing it occasionally, and not hundreds of times per second, so it wouldn't be an issue.
Apr 10 '11 at 08:35 PM
Eric5h5
(comments are locked)
|
