ScratchData LogoScratchData
Back to Howtomakeanalt's profile

Line to circle collision

HOHowtomakeanalt•Created August 4, 2020
Line to circle collision
11
7
130 views
View on Scratch

Instructions

I'm bored, but decided to make this. Probably the simplest line-circle collision I know, made it in something like 10 minutes after seeing a video for inspiration (link in credits). Will make a 3d version.

Description

Basically all it does is calculate the nearest distance to the line, and if that is below the radius' added together then it is colliding. Video with the maths which was my inspiration https://youtu.be/PMltMdi1Wzg

Project Details

Project ID415682294
CreatedAugust 4, 2020
Last ModifiedAugust 30, 2020
SharedAugust 4, 2020
Visibilityvisible
CommentsAllowed