|
| 01 Sep 2012 06:59 PM |
I haven't completely mastered raycasting, besides using it in straight, non-dimensional rays.
Is it possible to raycast in 3d? Such as raycasting for objects within a 3x3 stud area? |
|
|
| Report Abuse |
|
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 01 Sep 2012 07:08 PM |
| http://wiki.roblox.com/index.php/Region3 |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:08 PM |
Fry.png not sure if serious or trolling. In either case, gobwey. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:09 PM |
I would say I love you, but with my username that would be suspicious....
So thank you.. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:12 PM |
| Ugh this is going to take some practice... |
|
|
| Report Abuse |
|
|
farted
|
  |
| Joined: 26 Feb 2008 |
| Total Posts: 358 |
|
| |
|
farted
|
  |
| Joined: 26 Feb 2008 |
| Total Posts: 358 |
|
|
| 01 Sep 2012 07:18 PM |
Wait sorry, excuse me what I just said.
sqrt(x1-x2^2+y1-y2^2+z1-z2^2)
x1,y1,z1 are the first points and x2,y2,z2 are the ending points
|
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:29 PM |
| Can you raycast in anything besides lines? |
|
|
| Report Abuse |
|
|
farted
|
  |
| Joined: 26 Feb 2008 |
| Total Posts: 358 |
|
| |
|
farted
|
  |
| Joined: 26 Feb 2008 |
| Total Posts: 358 |
|
|
| 01 Sep 2012 07:31 PM |
Wait I don't even know what you mean.
Care to explain a bit better ? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:31 PM |
| How would you execute it? Could you type in a line of scripting that would raycast an area? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:32 PM |
| If I wanted to raycast an entire 3x3 area for example? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 07:36 PM |
Go back to grade 7 pls. No, you cannot, otherwise, it isn't a ray. Rays are lines, which have a position, and a direction. They do not end, that is why they are used in shooting games, where you can check what a ray has been through. |
|
|
| Report Abuse |
|
|
Aerideyn
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 1882 |
|
|
| 01 Sep 2012 07:37 PM |
First define exactly what script behaviour you want.
Raycasting usualy means steping along a vector checking each step if that point lies within an obsticle. if it does then return that point otherwise keep stepping until you reach a preset distance where the search stops. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2012 11:15 PM |
@chicken, are you trying to start something? I know what a ray is, it's partial line segment, the line starts at one point and continues infinitely in a direction.
However, I was asking if there was any method or anything. I know I could raycast everyone spot within the 3x3 at a 0.1 interval, but that would be laggy and unefficient.
It doesn't even seem like you know much at scripting, nor do you seem very mature. Please do not post on a thread that you cannot contribute to positively. |
|
|
| Report Abuse |
|
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
|
| 01 Sep 2012 11:25 PM |
:SomeReallyLongMethodInvolvingRegion3(ReallyLongConstructorsOfRegion3Epicness(Vector3's go here))
That or do some AABBCC collision detection to see if the part intersects your boxxx |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2012 12:48 AM |
If you wish to master raycasting , it's simple!
All you need is some time alone and Lu..
...Oh, that kind of ray casting! Go here then: http://wiki.roblox.com/index.php/Raycasting |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2012 08:30 AM |
"Raycasting usualy means steping along a vector checking each step if that point lies within an obsticle."
no thats an awfully slow method thats inaccurate and would lag any program to death.
lrn2raycast |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2012 11:45 AM |
| what's up with the weird usernames? |
|
|
| Report Abuse |
|
|