ScratchData LogoScratchData
Back to grandpasp's profile

if touching circular object, bounce

GRgrandpasp•Created May 24, 2025
if touching circular object, bounce
6
4
64 views
View on Scratch

Instructions

Some times, as well as "if on edge, bounce" we may need to "bounce" off a different surface. If we know the angle of that object, this code calculates the required bounce angle.

Description

Credit to: @awesome-llama for the "difference between angles" code. @dittosnorlax for the idea to constantly have the "targets" point toward the yellow ball.

Project Details

Project ID1180162747
CreatedMay 24, 2025
Last ModifiedMay 30, 2025
SharedMay 24, 2025
Visibilityvisible
CommentsAllowed