ScratchData LogoScratchData
Back to Java_Programmer's profile

Ball+Line Collision Visual

JAJava_Programmer•Created May 19, 2018
Ball+Line Collision Visual
98
67
1713 views
View on Scratch

Description

I drew a bunch of random lines. Your welcome. Just kidding, let me explain what these mean: Grey - Vector from start point of platform to ball. Green - Projection of grey vector onto tangent vector. Shaded Point - Edge of the projection (point used in collide block). Blue - Vector from shaded point to ball (aka normal vector). Red - Ball Velocity Purple - Projection of red vector onto blue (normal) vector. These vectors/points are included in my Ball Physics Tutorial. Some things to notice, by the way: - The blue normal vector is always pointing outwards, usually at a 90 degree angle. - The purple vector (projected velocity) is reversed when colliding, but the red vector isn't quite reversed.

Project Details

Project ID224258626
CreatedMay 19, 2018
Last ModifiedMay 19, 2018
SharedMay 19, 2018
Visibilityvisible
CommentsAllowed