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 » Club Houses » Clans & Guilds
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
23 Sep 2011 04:13 PM
[ Content Deleted ]
Report Abuse
DARKHAWK6197 is not online. DARKHAWK6197
Joined: 16 Aug 2009
Total Posts: 2831
23 Sep 2011 04:14 PM
"Who raycasting means"
wut
Report Abuse
master1011 is not online. master1011
Joined: 22 Nov 2008
Total Posts: 5086
23 Sep 2011 04:14 PM
Cating rays.

win
Report Abuse
salzvatik12 is not online. salzvatik12
Joined: 17 Feb 2010
Total Posts: 10747
23 Sep 2011 04:14 PM
pew pew gun
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
23 Sep 2011 04:14 PM
[ Content Deleted ]
Report Abuse
xXTheStrykerXx is not online. xXTheStrykerXx
Joined: 05 Sep 2011
Total Posts: 2913
23 Sep 2011 04:14 PM
guns that go pewpew
Report Abuse
master1011 is not online. master1011
Joined: 22 Nov 2008
Total Posts: 5086
23 Sep 2011 04:15 PM
casting*

floodcheck
floodcheck
checkflood
kcehcdoolf
Report Abuse
kaelan01 is not online. kaelan01
Joined: 17 May 2008
Total Posts: 21444
23 Sep 2011 04:16 PM
i swear i didnt copy this from the wiki i swear


Raycasting describes the act of casting a ray from a certain point in a certain direction, and determining what it collides with.
Why is it used?

Let's say you want to make a gun that shoots out lasers. Okay, we created the base LocalScript. Now, we make the laser. The question is this: where does the laser beam stop. We were given a raycasting function in mid-2011, (Workspace::FindPartOnRay). Before that, we had to create our own raycasting algorithms.
You might be asking, why did Roblox create it for us when we already had it? Well, built-in events are coded in C++. Algorithms made in C++ tend to be much more efficient and of course, faster. When we got the new built-in raycasting algorithm, the creator of the fastest and most efficient user-created raycasting algorithm found out that the built-in algorithm was approximately 105 times faster than his.
How do I use it?

 FindPartOnRay( Ray ray, Instance ignoreDescendentsInstance )
Returns Instance object, Vector3 position
Description: Returns the first part that intersects with a ray.
In Object: Workspace

In more in-depth definitions, the ray is a ray object that has stored the origin and direction of the ray. ignoreDescendentsInstance is an instance value that, when the ray is created, the ray will not be obstructed by the descendants of the instance plugged into the parameters. What the method returns is the object the ray hit (if exists, otherwise returns nil) and the position returns the center of the ray.
In coding terms:
local ray = Ray.new(
    Weapon.Handle.CFrame.p, -- origin
    (mouse.Hit.p - Weapon.Handle.CFrame.p).unit * 500 -- direction
)
local ignore = game.Players.LocalPlayer.Character

local hit, position = game.Workspace:FindPartOnRay(ray, ignore)
See Also

How to Make a Raycasting Lasergun
Category: Scripting Tutorials
Report Abuse
Adrical is not online. Adrical
Joined: 09 Mar 2011
Total Posts: 8205
23 Sep 2011 04:16 PM
Ray casting is the use of ray-surface intersection tests to solve a variety of problems in computer graphics. - Wiki

~TILDAS~
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
23 Sep 2011 04:18 PM
[ Content Deleted ]
Report Abuse
goodnamesalltaken is not online. goodnamesalltaken
Joined: 20 Mar 2010
Total Posts: 19799
23 Sep 2011 04:18 PM
it liek make gun go pew pew
Report Abuse
ndagon12 is not online. ndagon12
Joined: 26 Dec 2007
Total Posts: 3283
23 Sep 2011 04:20 PM
A brick that shoots along a vector in line with other vectors and stoping as it hits a brick.
Report Abuse
SirBackspace is not online. SirBackspace
Joined: 28 Mar 2010
Total Posts: 15427
23 Sep 2011 04:21 PM
It means

Less qq more pew pew
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
23 Sep 2011 04:21 PM
[ Content Deleted ]
Report Abuse
Shadowpurky is not online. Shadowpurky
Joined: 21 Oct 2009
Total Posts: 11535
23 Sep 2011 04:22 PM
Its a mathicale algorithim that is used in scripting.
Report Abuse
Andillas is not online. Andillas
Joined: 23 May 2010
Total Posts: 5076
23 Sep 2011 04:22 PM
raycasting's an algorithm that determines the length of a part using a .Clicked function. It determines distance, size, length, etc. based on the location of the click.

John Galt is the man Big Brother is not watching.
Report Abuse
SHADOWTASTIC is not online. SHADOWTASTIC
Joined: 27 Jul 2011
Total Posts: 857
23 Sep 2011 04:23 PM
THANKS WIKI :D!

Ray casting is the use of ray-surface intersection tests to solve a variety of problems in computer graphics. It enables spatial selections of objects in a scene by providing users a virtual beam as a visual cue extending from devices such as a baton or glove extending and intersecting with objects in the environment. The term was first used in computer graphics in a 1982 paper by S.R. to describe a method for rendering CSG models.

ATTENTION ALL CREDIT TO WIKI!
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
23 Sep 2011 04:23 PM
[ Content Deleted ]
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
23 Sep 2011 04:30 PM
Raycasting = virtual rays that searchs for collisions. Its used to find out what the screen should draw in 3D environment? D:

I think im wrong... xD
Report Abuse
Vrix is not online. Vrix
Joined: 07 Nov 2010
Total Posts: 8550
23 Sep 2011 04:31 PM
Lazers that go pewpew
Report Abuse
alkia is not online. alkia
Joined: 15 Nov 2008
Total Posts: 25645
23 Sep 2011 04:31 PM
Something Tenal's good at.


Praise points plox
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
23 Sep 2011 04:33 PM
[ Content Deleted ]
Report Abuse
St0rmx is not online. St0rmx
Joined: 23 Mar 2010
Total Posts: 16104
23 Sep 2011 04:34 PM
[ Content Deleted ]
Report Abuse
LunaScamander is not online. LunaScamander
Joined: 25 Jan 2010
Total Posts: 41516
23 Sep 2011 04:34 PM
algorithm or somethin'
Report Abuse
JamylSarum is not online. JamylSarum
Joined: 01 Sep 2011
Total Posts: 464
23 Sep 2011 04:38 PM
In ROBLOX, It means a gun designed to shoot any kind of beam.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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