|
| 21 Feb 2016 10:54 AM |
Lets say I launch a bullet and it hits another part, can I find exactly where it hit on that part? |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2016 10:55 AM |
Well if you're using raycasting (And you really should be since Touched is unreliable) then it is just the second and third returns from FindPartOnRay.
|
|
|
| Report Abuse |
|
|
|
| 21 Feb 2016 10:56 AM |
uh- How would I replace onTouched with RayCasting- I've always used onTouch.
|
|
|
| Report Abuse |
|
|
|
| 21 Feb 2016 10:57 AM |
Well, firstly, learn raycasting. There are tutorials for "Raycasting Lasergun" on the wiki, and that should get you started.
|
|
|
| Report Abuse |
|
|
|
| 21 Feb 2016 11:15 AM |
uh - I don't think I can use RayCasting for what I'm doing. As in 'Bullet' I basically meant I was making a Ball that is fired, It could hit anything in its path, It might not be going in mouse direction. Most tutorials show RayCasting being used to make a Laser which is basically determining the distance between the thing you've clicked, I don't know how I could use that to find if the part was actually touched..
Sorry if that sounds stupid, I'm just assuming.
|
|
|
| Report Abuse |
|
|