What makes a weapon function?
#6

From what I learn and has you said, you have the weapon model and particle effects, but you also have another thing and this thing is what makes the shot. I'm not sure if GTA is based on this but as far has I know when you want to "shoot" something you make a RayCast.

A RayCast it's a ray that has a starting point and continues infinitely in some direction, mathematically speaking. The Raycast will intersect any object within the ray and it will return information about the objects intersected, like how far are they, what type are they, etc..

You can check Pottus Plugin to see an implementation of the RayCast.
Reply


Messages In This Thread
What makes a weapon function? - by Infamous - 16.04.2015, 16:19
Re: What makes a weapon function? - by JaydenJason - 16.04.2015, 18:30
Re: What makes a weapon function? - by Infamous - 16.04.2015, 20:14
Re: What makes a weapon function? - by JaydenJason - 16.04.2015, 22:20
Re: What makes a weapon function? - by Crayder - 17.04.2015, 05:07
Re: What makes a weapon function? - by RebeloX - 17.04.2015, 22:59
Re: What makes a weapon function? - by Infamous - 17.04.2015, 23:27
Re: What makes a weapon function? - by JaydenJason - 18.04.2015, 07:48
Re: What makes a weapon function? - by Crayder - 18.04.2015, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)