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 
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
27 Dec 2015 10:47 AM
I used to be able to make raycasting guns and stuff, but its been a while... (Yes, I've tried using the wiki. But I just woke up. It confused me...) How would I make a simple raycast that can tell if it came in contact with a certain terrain?
Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
27 Dec 2015 11:00 AM
game.Workspace:FindPartonRay()


The Legend of Heroes
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
27 Dec 2015 11:14 AM
I know about that part of raycasting yes. But how would I detect if it came in contact with Terrain water?
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
27 Dec 2015 11:38 AM
Bump
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
27 Dec 2015 12:02 PM
FindPartOnRay and FindPartOnRayWithIgnoreList both return the following,
Hit (Object that intersected with the ray, if any), Pos (Position where the ray ended, whether it was where the ray hit something, or it just ended without hitting anything), NormalVector (The vector to show where the part's surface is facing, the surface that the ray hit, if any object was hit at all), Material (Works for both terrain AND normal parts)

"My Life is going Good... but..."
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