|
| 30 Jul 2014 01:55 PM |
How can I split :
local Start = Tool.Handle.CFrame.p local EndPoint = Mouse.Hit.p Ray.new(Start,(Start-EndPoint).unit)
Into 3 different rays ; Startting, middle and ending ray segment(S)?
|
|
|
| Report Abuse |
|
|
|
| 30 Jul 2014 02:04 PM |
local distance = (Start-EndPoint).magnitude local direction = (Start-EndPoint).unit local start = Ray.new(Start, distance*direction) local middle = Ray.new(Start+distance*direction, distance*direction) local end = Ray.new(Start+distance*direction*2, distance*direction)
MomoiroCloverZ, newbag expert Lua coder. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2014 02:05 PM |
Divide distance by 3 *facepalm* I forgot that.
MomoiroCloverZ, newbag expert Lua coder. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Jul 2014 05:27 PM |
| end is a bad variable though O_O |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Jul 2014 05:47 PM |
o rite didnt even think about that
MomoiroCloverZ, newbag expert Lua coder. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2014 01:30 PM |
| Ya it is, but I got the idea so its all good. |
|
|
| Report Abuse |
|
|