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: Making reflecting raycasting?

Previous Thread :: Next Thread 
drslicendice is not online. drslicendice
Joined: 05 Mar 2011
Total Posts: 18737
05 May 2016 11:16 PM
I have no idea on how to make this. Please help and thank you!
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
05 May 2016 11:17 PM
gotta know some maths


Report Abuse
drslicendice is not online. drslicendice
Joined: 05 Mar 2011
Total Posts: 18737
05 May 2016 11:18 PM
Thank you for your contribution to this thread.
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
05 May 2016 11:20 PM
Advanced maths.
Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
05 May 2016 11:20 PM
wow guys thanks for helping him jeez

http://blog.roblox.com/2013/07/developers-journal-using-raycasting-to-make-reflectable-lasers/

I think I'm the only person who knows this article exists


Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
05 May 2016 11:22 PM
Google doesn't love me enough to show me that page when I'm actually looking for it.
Report Abuse
drslicendice is not online. drslicendice
Joined: 05 Mar 2011
Total Posts: 18737
05 May 2016 11:23 PM
Looked in one of the scripts of the article's reflecting gun, but I couldn't pinpoint the part where it "reflects".
Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
05 May 2016 11:23 PM
I wish the ROBLOX Blog kept that series going with more informative articles on code.

Another good one for newer players:

http://blog.roblox.com/2012/05/using-wait-wisely/

Or even if the Wiki did this more.

But the quality content is few and far between.

Also I've literally looked at every ROBLOX related article posted on Medium, few treasures there including a good explanation of the dot product.


Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
05 May 2016 11:25 PM
Here's the video the guy made on it:

https://www.youtube.com/watch?v=yKyb_wJTaDk




Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
05 May 2016 11:26 PM
Good stuff on the dot product to help you understand it (there's also non-ROBLOX stuff too of course):

http://wiki.roblox.com/index.php?title=Dot_product

and google

"roblox medium dot product"


Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
05 May 2016 11:40 PM
It's the hhtrans segment of the code in the picture.

The function is called on line 267, with variables from earlier. 113-117 is the function that reflects the shot based on the trajectory of the previous positions. If you want me to explain further, I can try, but I haven't bothered using reflection myself.
Report Abuse
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37142
06 May 2016 12:59 AM
vetors, rays, distances, endpoints, midpoints.

anyone capable of scripting this would ace any matrix algebra test
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
06 May 2016 01:02 AM
yay i aced it
Report Abuse
Protoduction is not online. Protoduction
Joined: 27 Jul 2012
Total Posts: 1054
06 May 2016 01:41 AM
Or, you could just use dot product.

http://wiki.roblox.com/index.php?title=Dot_product

Scroll to bottom for final code.


Report Abuse
Protoduction is not online. Protoduction
Joined: 27 Jul 2012
Total Posts: 1054
06 May 2016 01:42 AM
Just saw GetTheJobDones post whoops


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