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: Raycasting?

Previous Thread :: Next Thread 
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
01 Sep 2012 07:07 PM
No one knows?
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
01 Sep 2012 07:08 PM
http://wiki.roblox.com/index.php/Region3
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
01 Sep 2012 07:08 PM
Fry.png not sure if serious or trolling.
In either case, gobwey.
Report Abuse
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
01 Sep 2012 07:12 PM
Ugh this is going to take some practice...
Report Abuse
farted is not online. farted
Joined: 26 Feb 2008
Total Posts: 358
01 Sep 2012 07:17 PM
sqrt(x^2+y^2+z^2) ?
Report Abuse
farted is not online. 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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
01 Sep 2012 07:29 PM
Can you raycast in anything besides lines?
Report Abuse
farted is not online. farted
Joined: 26 Feb 2008
Total Posts: 358
01 Sep 2012 07:30 PM
of course..
Report Abuse
farted is not online. 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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
01 Sep 2012 07:32 PM
If I wanted to raycast an entire 3x3 area for example?
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
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 is not online. 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
SuperODgirl9000 is not online. SuperODgirl9000
Joined: 29 Aug 2012
Total Posts: 264
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 is not online. 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
popdosprite2 is not online. popdosprite2
Joined: 01 May 2009
Total Posts: 83
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
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
02 Sep 2012 11:45 AM
what's up with the weird usernames?
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