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 » Scripting Helpers
Home Search
 

Re: Could somebody explain raycasting to me?

Previous Thread :: Next Thread 
ZeekyFooby is not online. ZeekyFooby
Joined: 16 Apr 2009
Total Posts: 415
03 Jan 2010 06:13 AM
Somebody advanced who knows what he's talking about, and can do it in Lua. And I don't want a script which I can copy and paste, I want a definition and explanation. I'm determined to know about it xD. If possible, send me a PM.
Report Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
03 Jan 2010 06:28 AM
There is no such thing as raycasting in Lua...
Report Abuse
blacksmithgu is not online. blacksmithgu
Joined: 20 Aug 2008
Total Posts: 8852
03 Jan 2010 06:50 AM
In technality, you can raycast using a bunch of inaccurate math functions...

Raycasting is where you basically create a line and sent it in a certian direction and it keeps going till it hits something.
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Jan 2010 06:51 AM
You could do this with a bunch of recursives, some magnitude measuring, lag, alot of luck, and some math....

Or you could just send an invisible part out as your raycast... =3
Report Abuse
blacksmithgu is not online. blacksmithgu
Joined: 20 Aug 2008
Total Posts: 8852
03 Jan 2010 06:54 AM
^ That's what I do whenever I rarely raycast =(
Report Abuse
totaka1 is not online. totaka1
Joined: 26 Apr 2009
Total Posts: 716
03 Jan 2010 07:09 AM
a=Ray.new(Vector3.new(10,0,0),Vector3.new(0,0,10))

Tah Dah :3
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Jan 2010 07:13 AM
Yes totaka, I've heard of doing that... I've never experimented with it... What does it return if theres something in the way?
Report Abuse
totaka1 is not online. totaka1
Joined: 26 Apr 2009
Total Posts: 716
03 Jan 2010 07:26 AM
absolutely nothing. I don't understand the use for it :3
Report Abuse
ss1122 is not online. ss1122
Joined: 16 Dec 2008
Total Posts: 1601
03 Jan 2010 07:46 AM
[ Content Deleted ]
Report Abuse
Vengroe is not online. Vengroe
Joined: 16 Feb 2009
Total Posts: 3057
03 Jan 2010 08:16 AM
I tried using the ray.new thing.
I did this:
local start = script.Parent
local endpoint = workspace.End
local ray = Ray.new(start.Position, endpoint.Position)
print(ray)
(there is an object between start and endpoint)

It printed the startpoint and direction.
Until I know what other functions go with it, I can't do anything with it.
Report Abuse
nightname is not online. nightname
Joined: 10 Jun 2008
Total Posts: 8960
03 Jan 2010 08:24 AM
This pesky thing. I am still experimenting too. >.<
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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