|
| 20 Mar 2016 11:53 AM |
| not a gun that uses raycasting, but creating a line from "part A" to "part B" |
|
|
| Report Abuse |
|
|
c9_io
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 2642 |
|
|
| 20 Mar 2016 11:53 AM |
A ray is a ray not a line
http://www.roblox.com/unnamed-item?id=385096183 |
|
|
| Report Abuse |
|
|
Thedagz
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 798 |
|
|
| 20 Mar 2016 12:09 PM |
Definition of Ray - any of a set of straight lines passing through one point.
Stop trolling please
http://wiki.roblox.com/index.php?title=Ray -- Information on Ray |
|
|
| Report Abuse |
|
|
c9_io
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 2642 |
|
|
| 20 Mar 2016 12:12 PM |
Uh what are you ok a ray has a start point and then goes in one direction infinitely. Rays are not "any of a set of straight lines passing through one point." Calling others trolls when you don't even know what a ray is is pretty sad
http://www.roblox.com/unnamed-item?id=385096181 |
|
|
| Report Abuse |
|
|
| |
|
c9_io
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 2642 |
|
|
| 20 Mar 2016 12:13 PM |
Go back to algebra kid if you passed it already
http://www.roblox.com/unnamed-item?id=385096181 |
|
|
| Report Abuse |
|
|
Thedagz
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 798 |
|
| |
|
c9_io
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 2642 |
|
|
| 20 Mar 2016 12:17 PM |
No because you should know what a ray is before even starting geometry much less algebra
http://www.roblox.com/unnamed-item?id=385096181 |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2016 11:18 AM |
| dangit why did a flame war have to be my answer |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2016 11:23 AM |
local pointA local pointB local mag = (pointA-pointB).magnitude
local p = Instance.new("Part",workspace) p.Anchored = true p.Size = Vector3.new(1,1,mag) p.CFrame = CFrame.new(pointA,pointB) * CFrame.new(0,0,-mag/2)
Recommended username: PerfectRay_revenge
|
|
|
| Report Abuse |
|
|
|
| 22 Mar 2016 11:25 AM |
Wait, I misunderstood the question
local partA local partB
local ray = Ray.new(partA.Position,(partB.Position-partA.Position)) local hit,pos,norm = workspace:FindPartOnRay(ray,partA)
Recommended username: MachoRay_revenge
|
|
|
| Report Abuse |
|
|
|
| 22 Mar 2016 11:38 AM |
@ray_revenge
making a line part between 2 parts w/ raycasting, i also wanna know how it works |
|
|
| Report Abuse |
|
|