ScratchData LogoScratchData
Back to gdxfor's profile

Deriving touching equations from vector graphics and JSON files test #1

GDgdxfor•Created November 3, 2022
Deriving touching equations from vector graphics and JSON files test #1
0
0
5 views
View on Scratch

Instructions

A demo that shows how the <touching?> block can be recreated via equations on rectangle-only costumes. This was done by looking through the .svg and .json files of this costume and project and plugging it in the following formula: f(b,p,t,r)=r-(p+b+t) where: b is the base position p is the moving change t is the translation r is the costume's rotation center As stated before, this only works with costumes that solely are drawn from rectangles, but most can be expanded upon to supporting mostly any shape.

Project Details

Project ID755386351
CreatedNovember 3, 2022
Last ModifiedOctober 24, 2023
SharedNovember 4, 2022
Visibilityvisible
CommentsAllowed