ScratchData LogoScratchData
Back to superfireninja9's profile

Radial Weighted Randomness

SUsuperfireninja9•Created December 31, 2022
Radial Weighted Randomness
8
2
25 views
View on Scratch

Instructions

Try turbo mode if you want The 10^(log()) function is a workaround for the fact that Scratch does not have a built-in exponents block. This is to demonstrate how randomness can be guided to a certain point I needed to have this because I wanted to create shards for glass breaking from a certain point of impact. You would generate the points using this algorithm with the origin of the weighted random being at the point of impact, and then use a mesh triangulation algorithm to create a bunch of triangle shards from those points. It really looks like shattered glass!

Project Details

Project ID782477572
CreatedDecember 31, 2022
Last ModifiedJanuary 10, 2023
SharedJanuary 9, 2023
Visibilityvisible
CommentsAllowed