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: normalid raycasting

Previous Thread :: Next Thread 
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
16 Jan 2016 10:05 AM
ok.. So I'm making a detection using raycasting where it will find the part in front of the brick.. but its only printing nil



local Direction = Vector3.FromNormalId(Enum.NormalId.Front)
local CF = bomb.CFrame * CFrame.new(Direction)
Direction = CF.p.unit
local Ray = Ray.new(bomb.Position, Direction)
local OHit, PHit = workspace:FindPartOnRay(Ray)
print(OHit, PHit)
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
16 Jan 2016 10:09 AM
super bump
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
16 Jan 2016 10:15 AM
Is your vector/CFrame math accurate?
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
16 Jan 2016 10:18 AM
not sure
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Jan 2016 10:20 AM
Well, find out :P


Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
16 Jan 2016 10:42 AM
got it figured. ty
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