ScratchData LogoScratchData
Back to Volcanoid's profile

Raycasting reflections on a circle

VOVolcanoid•Created December 31, 2020
Raycasting reflections on a circle
3
1
35 views
View on Scratch

Instructions

Uses a mix of calculus and trigonometry to accurately calculate the reflected direction of beams hitting a circle Turn down "Number Of Rays" if it's running poorly!

Description

Feel free to implement these reflection mechanics into a game! I'm considering making a shooter where bullets can reflect on walls to hit enemies from unusual positions.

Project Details

Project ID469032508
CreatedDecember 31, 2020
Last ModifiedJanuary 1, 2021
SharedDecember 31, 2020
Visibilityvisible
CommentsAllowed