Discuss Scratch

CoolBoy4286
Scratcher
44 posts

How do I make softbodies?

So I wanted to make softbodies because I got bored of rigidbodies, but I have NO idea of where to start and what to do, help is appreciated.

I create awesome projects but no one views them, some awesome projects you might like: An Animation I created which no one views | A paint game I made, if you check out my profile and view my projects I will be
when green flag clicked
forever
if <you view and love and favourite my projects> then
I'll be :)
orangetheory
Scratcher
500+ posts

How do I make softbodies?

Can you explain what softbodies, in Scratch terms, are? It's hard to help when you don't explain your inquiry!

-Frisbee- -Cricket--Basketball--Forums--Mapping--Coding--Trigonometry master--Mathematics King--Future Prime Minister--Intro-Maker-
I know HTML/CSS, and JavaScript, and with these coding skills I have made some decent projects! Test them out below!
~Archery~Cops + Robbers~
Want an intro, outro, music, effects, or more? Check out the intro shop!

The forum helpers, a place where we help people in the forums
CoolBoy4286
Scratcher
44 posts

How do I make softbodies?

orangetheory wrote:

Can you explain what softbodies, in Scratch terms, are? It's hard to help when you don't explain your inquiry!
A softbody is a body which is deformable, eg, Slime, Sponge etc, in reality nothing is a rigidbody because nothing can be non-deformable, but rigidbodies are used in programming to keep things simple.

I create awesome projects but no one views them, some awesome projects you might like: An Animation I created which no one views | A paint game I made, if you check out my profile and view my projects I will be
when green flag clicked
forever
if <you view and love and favourite my projects> then
I'll be :)
DavidJag
Scratcher
73 posts

How do I make softbodies?

This should probably be in advanced topics as you don't have specific script you need help with.

That said, it depends what you want to do. It's quite easy to model a bouncing soft ball compared to a bouncing rigid ball. You simply reduce the amount it bounces and animate it with a few costumes representing the squashed ball.

Slime would be modelled as a few particles. As the particles could move independently but as they get further from the other particles there would be more force pulling them back (and also pulling the other particles towards itself).. If something hits the slime then it would move the particle back and that would drag the other particles with it (that would resist the movement) and perhaps either bounce back or break off into another blob of slime.

You'd have to get creative with costumes or the pen to make it look good!

Be a banana

Can you get to the top of the scoreboard?: Rocks in Space!

Some 3D: Loopy d' loop
CoolBoy4286
Scratcher
44 posts

How do I make softbodies?

DavidJag wrote:

This should probably be in advanced topics as you don't have specific script you need help with.

That said, it depends what you want to do. It's quite easy to model a bouncing soft ball compared to a bouncing rigid ball. You simply reduce the amount it bounces and animate it with a few costumes representing the squashed ball.

Slime would be modelled as a few particles. As the particles could move independently but as they get further from the other particles there would be more force pulling them back (and also pulling the other particles towards itself).. If something hits the slime then it would move the particle back and that would drag the other particles with it (that would resist the movement) and perhaps either bounce back or break off into another blob of slime.

You'd have to get creative with costumes or the pen to make it look good!
So I understand what you are saying, but still have no clue on how to implement them, there must be some formulas right? Cause I want my project to be as realistic as possible, and I also am not willing to make 100 costumes.

I create awesome projects but no one views them, some awesome projects you might like: An Animation I created which no one views | A paint game I made, if you check out my profile and view my projects I will be
when green flag clicked
forever
if <you view and love and favourite my projects> then
I'll be :)

Powered by DjangoBB

Standard | Mobile