ScratchData LogoScratchData
Back to MathPuppy314's profile

Point-Line Collision v1.0

MAMathPuppy314•Created September 25, 2021
Point-Line Collision v1.0
34
27
476 views
View on Scratch

Description

Point-Line Collision v1.0 I needed this basic point-line collision script for softbody collisions and for circle collisions. It calculates the position of all important points and the lengths of lines. Move your mouse to move the point. Press space to move the line to a random position. The green line is the line we collide with. The purple and blue lines are intermediate steps. The red line means there is a collision at its endpoint. The yellow line means there is no collision. Update Information v1.0 Collision 1.0 - No undefined slope problems.

Project Details

Project ID575121634
CreatedSeptember 25, 2021
Last ModifiedMarch 22, 2023
SharedSeptember 26, 2021
Visibilityvisible
CommentsAllowed