generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how exactly does raycasting work?

Previous Thread :: Next Thread 
turbozester55 is not online. turbozester55
Joined: 25 May 2013
Total Posts: 1942
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 is not online. 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 is not online. 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 is not online. 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
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
20 Mar 2016 12:13 PM
"A Ray is a half-line"


Report Abuse
c9_io is not online. 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 is not online. Thedagz
Joined: 10 Mar 2012
Total Posts: 798
20 Mar 2016 12:16 PM
Don't you mean geometry?
Report Abuse
c9_io is not online. 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
turbozester55 is not online. turbozester55
Joined: 25 May 2013
Total Posts: 1942
22 Mar 2016 11:18 AM
dangit why did a flame war have to be my answer
Report Abuse
ray_revenge is not online. ray_revenge
Joined: 18 Feb 2011
Total Posts: 453
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
ray_revenge is not online. ray_revenge
Joined: 18 Feb 2011
Total Posts: 453
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
turbozester55 is not online. turbozester55
Joined: 25 May 2013
Total Posts: 1942
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image