Discuss Scratch

CoolBoy4286
Scratcher
100+ 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.

01001110 01100101 01110110 01100101 01110010 00100000 01100111 01101111 01101110 01101110 01100001 00100000 01100111 01101001 01110110 01100101 00100000 01111001 01101111 01110101 00100000 01110101 01110000 if you translate this,


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
100+ 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.

01001110 01100101 01110110 01100101 01110010 00100000 01100111 01101111 01101110 01101110 01100001 00100000 01100111 01101001 01110110 01100101 00100000 01111001 01101111 01110101 00100000 01110101 01110000 if you translate this,


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
100+ 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.

01001110 01100101 01110110 01100101 01110010 00100000 01100111 01101111 01101110 01101110 01100001 00100000 01100111 01101001 01110110 01100101 00100000 01111001 01101111 01110101 00100000 01110101 01110000 if you translate this,


Powered by DjangoBB