3-D Gravity Simulation

Your browser needs java to view projects. Click here to install Java.

user_icon BATzerk shared it 2 years, 2 months ago
user_icon Based on BATzerk's project
376 views, 2 taggers, 9 people love it, 2 remixes by 2 people, 40 downloads, in 3 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
ShinyGold ShinyGold 9 months, 2 weeks ago

I don't know how you did that, but AWESOME

fullmoon fullmoon 1 year, 2 months ago

Cool, you might be interested: (link to project)">(link to project)

poopoo poopoo 1 year, 5 months ago

sweet!

BATzerk BATzerk 2 years, 2 months ago

Hey, pretty much, chalkmarrow! Me trying to respond to Mark0108 somehow triggered yet another epiphany for me with this 3-D space thing. I posted a second version of this gravity simulation, only the second version measures the distance to Gravity (blue ball) as (x^2 + y^2 + z^2)^0.5 rather than (x^2 + y^2)^0.5. In other words, z position affects x and y velocity!! (I know, it was truly a breakthrough for me in my Scratch-making experience!)

chalkmarrow chalkmarrow 2 years, 2 months ago

Very cool. You may want to take a look at some of the projects that use one-point perspective and include the code for changing 2d x and y as a function of z. For example: http://www.scratch.mit.edu/projects/chalkmarrow/27393">http://www.scratch.mit.edu/projects/chalkmarrow/27393

BATzerk BATzerk 2 years, 2 months ago

(If that made no sense, think of it this way: right now, x and y velocity are NOT affected by my simulated z velocity/displacement. You'll notice that the ball makes the same pen patterns on this version that it does on the 2-D one. The patterns are flat in actuality. I can fix it! EUREKA!!!) XD

BATzerk BATzerk 2 years, 2 months ago

The distance to Gravity (the blue ball) only counts the x- and y-axis! I can make the movement of the ball much more accurate if I find the ACTUAL distance to it--the square root of the (squared) distances to it on the x-, y-, and z-axies! In actual three dimensions! Which would then in turn affect x and y velocity!! THEY'RE NOT INDEPENDENT!!! (OMGOMGOMG) 8-O

BATzerk BATzerk 2 years, 2 months ago

Thanks, man! ...At first, the concept of what I wanted to do confused me... I didn't know how to fake a z-axis. Unfortunately, I didn't mathematically create a "real" z-axis--just a dimension that changed size similarly to how a third dimension would. (Like, I couldn't fake the part about... EPIPHANY!!!!

Mark0108 Mark0108 2 years, 2 months ago

Dude ... this is sweet.

Please Wait...