|
| 16 Apr 2016 01:22 AM |
| The wiki seems to only associate ray-casting with laser, but I'm assuming that has to do with Roblox avoiding the whole bullets and violence thing. I haven't began reading through it yet, but I'm going to start tomorrow, just want to know if I'll be wasting my time. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 02:12 AM |
Raycasting is not meant purely for guns, it just casts a ray from some point off into some direction and using FindPartOnRay you can see if the ray intersected with any BasePart.
You could just use projectiles and the Touched event for bullets though |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 02:25 AM |
"You could just use projectiles and the Touched event for bullets though"
(which is the worst thing ever) |
|
|
| Report Abuse |
|
|
Thy_Yuno
|
  |
| Joined: 15 Jul 2014 |
| Total Posts: 239 |
|
|
| 16 Apr 2016 02:39 AM |
| I use body velocity to shoot bullets |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 03:04 AM |
| Good lord. Guns in 09' used to do the body velocity and touched thing. Don't, pretty much. If you have a high velocity bullet, you'll need a custom touch function. Just make it with recast. Even paintball guns with dip are just made with a good raycast. |
|
|
| Report Abuse |
|
|
amgcag
|
  |
| Joined: 09 May 2013 |
| Total Posts: 1331 |
|
|
| 16 Apr 2016 03:04 AM |
No, they can use bullets (parts) that fling at people.
Pie is not a food, it's a milkshake. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 03:08 AM |
You can always use ray-casting to create a path to guide your bullets?
Ray casting is just a calculation... There is a lot of things u can do with it.
|
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 05:57 AM |
| Phantom forces, Impulse, Kinetic Code, and even off site games like CoD use raycasting |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 06:01 AM |
@wolf could you help me get to grips with how they use bullets and ray-casting togeather effectivelly?
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2016 06:07 AM |
| They use Guis to replace their bullets, using this: http://wiki.roblox.com/index.php?title=API:Class/Camera/WorldToScreenPoint |
|
|
| Report Abuse |
|
|