Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
| |
|
| |
|
| |
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
| |
|
|
| 23 Sep 2011 04:15 PM |
casting*
floodcheck floodcheck checkflood kcehcdoolf |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
|
| 23 Sep 2011 04:18 PM |
| it liek make gun go pew pew |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 23 Sep 2011 04:21 PM |
It means
Less qq more pew pew |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 23 Sep 2011 04:22 PM |
| Its a mathicale algorithim that is used in scripting. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 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
|
  |
| Joined: 07 Nov 2010 |
| Total Posts: 8550 |
|
| |
|
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
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
| |
|
St0rmx
|
  |
| Joined: 23 Mar 2010 |
| Total Posts: 16104 |
|
| |
|
| |
|
|
| 23 Sep 2011 04:38 PM |
| In ROBLOX, It means a gun designed to shoot any kind of beam. |
|
|
| Report Abuse |
|
|