Introduction - Gravity fanmade library

Hi, I am Kikiboom7, I am working on an New Library Called Gravity.
This is the blocks:

set [y V] force to (-6) :: #1fa2ff

push up with force (10) :: #1fa2ff

if touching [sprite2 V] then stop falling :: #1fa2ff

spin while falling :: #1fa2ff

when i was falling :: hat #1fa2ff

float at the middle :: #1fa2ff

kick at direction (90 v) with force (14) :: #1fa2ff
<falling? :: #1fa2ff>
<landed? :: #1fa2ff>

when i was landed :: hat #1fa2ff

10/10 blocks done (Perfect!)

this Library is Coming to be published as a fanmade!

Here’s a gif:

Recording 2025-12-18 193227

(yep, i use Windows 11.)

What if it was a physics library in general?

[velocity V] :: #00cdff reporter
set [velocity V] to ():: #00cdff 

kick in direction (90) force () :: #00cdff 

set gravity center to [ground V]:: #00cdff

set gravity center to x: () y: ():: #00cdff

Just an idea, though :)

The traditional name for what you’ve called FLING is KICK, from the physics microworld made by Andy DiSessa in Logo back in the day. The virtue of that name is that you can kick something that’s already moving, whereas you can only fling something that’s at rest in your hand.

I don’t understand how you convert a force in Newtons into the behavior of a sprite. You’d have to know the mass of the sprite, and you’d need a way to convert from SI units to turtle steps. It’d be easier to work with an imparted acceleration in steps per second per second.

OK, fixed that.

it’s published now.
https://snap.berkeley.edu/project?username=kikiboom7&projectname=Gravity%20blocks!

Couldn’t one do:

if <touching [sprite2 V] ?> {
stop falling::#1fa2ff
}

?

These blocks have ambiguous intepretations. What does it do? What if I want to choose the spin?

Does float in the middle mean to dampen the falling until the sprite stops at the middle or just suspend the falling right away?

when <falling?::#1fa2ff>

Note: I started composing this message before the project was published and announced.

I cannot take a look at the project. I even checked your profile page and there is no such projects.

You publish projects by opening the project menu :file_icon:, then clicking on “Open…”. Find the project you want to share, click on it, and instead of opening it, click “Share” then “Publish”.

it was a timezone :sweat_smile:

it’s actually published now!

Wouldn’t FLOAT HERE be more general? Then you could do GO TO CENTER and then FLOAT HERE if that’s what you wanted.