This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-08 20:44:07

qlmaX5
Scratcher
Registered: 2009-02-27
Posts: 4

advanced physics applications in Scratch

I've been trying to work on a physics engine in scratch, but I've ran into several problems.

First, there is no efficient way to do pixel-based physics, i.e. displaced dirt and water.

Second, it would be next to impossible to use Pixel art in this, unless you knew exactly how many pixels away from the main "body", and/or the rotation center.

Is there any way that either of these could be implemented without modifying Scratch?
...I mean aside from each pixel being a different sprite...

Offline

 

#2 2009-04-08 21:09:43

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: advanced physics applications in Scratch

Can you describe what you are trying to simulate in your physics engine? It may be easier to figure out a possible suggestion to your problem if I knew the goal you are trying to achieve.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2009-04-08 21:21:53

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: advanced physics applications in Scratch

Your best bet is to create a number of pixel sized sprites and teach them how to react to their enviroment

Offline

 

#4 2009-04-09 17:14:12

Hobbs1100
Scratcher
Registered: 2008-02-16
Posts: 500+

Re: advanced physics applications in Scratch

Mike_W wrote:

Your best bet is to create a number of pixel sized sprites and teach them how to react to their enviroment

that would make a ton of lag.

Offline

 

#5 2009-04-09 17:25:54

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: advanced physics applications in Scratch

It would depend on the number of object if you are talking like particle spray - there is probably not enough power - if you are talking about simulating a few orbits odds are better.

Offline

 

Board footer