Yet another experiment, https://dl.dropboxusercontent.com/u/556 ... ezier.html
Bézier Curves of any degree can be visualized! You can also visualize straight lines, but that's sort of pointless.
Search found 174 matches
- Sat Aug 08, 2015 6:59 am
- Forum: General Chat
- Topic: Bézier Curves
- Replies: 4
- Views: 22469
- Wed Jul 15, 2015 7:06 pm
- Forum: General Chat
- Topic: New Horizons
- Replies: 2
- Views: 18192
Re: New Horizons
Pluto has a heart shape on it.
- Sat Jul 11, 2015 6:07 pm
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
Re: So I tried to see if I could do something like GSim in J
For merging, you just need to worry about (a) Conservation of Mass, and (b) Conservation of Momentum (mass*velocity). So make sure the new planet has the sum of the old masses (which I imagine you're already doing). And then sum up the momenta before, and use that to figure out the momentum (and th...
- Fri Jul 10, 2015 11:38 pm
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
Re: So I tried to see if I could do something like GSim in J
Going to say this first so you'll notice it: If there's anything I need help with, it's figuring out how exactly I should modify the velocity of a planet after it merges with another. It's things like this that make me wish that we still used our IRC channel, haha. But, then again, I use steam for c...
- Fri Jul 10, 2015 3:06 pm
- Forum: General Chat
- Topic: Off-Topic Posts
- Replies: 49
- Views: 114485
Re: Off-Topic Posts
Firstly, I know I am like 2 months late, but thank you for acknowledging my birthday!A Random Player wrote: I think you're probably the only one who put a birthday in on here.
(Wait, are you even still active? I forget.)
Secondly, I'm sure you've already seen me come back, but yes I'm here!
- Fri Jul 10, 2015 8:47 am
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
Re: So I tried to see if I could do something like GSim in J
I'm going to attempt to see if I can implement the Barnes-Hut algorithm, to speed things up.
Really simple and interesting algorithm too! Haha.
Really simple and interesting algorithm too! Haha.
- Thu Jul 09, 2015 1:24 am
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
Re: So I tried to see if I could do something like GSim in J
I think what I am going to do is just pause time as you are flinging something (thus making calculations and implementation a whole lot easier) and then go with what you said. Once the planet is flung, the sim continues. Edit: Okay, I've updated the file and added this feature. Predictions aren't am...
- Wed Jul 08, 2015 9:43 pm
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
Re: So I tried to see if I could do something like GSim in J
I could definitely add flinging, but I don't know how I would predict the trajectory.
- Tue Jul 07, 2015 11:26 pm
- Forum: Gravity Simulator
- Topic: So I tried to see if I could do something like GSim in JS
- Replies: 14
- Views: 40032
So I tried to see if I could do something like GSim in JS
Here I am, and I made a super limited version of his sim: https://dl.dropboxusercontent.com/u/55657765/gravsim.html (aside from having learned gravity laws from Andy's game, this was actually coded mostly from scratch) Current Features: - Gravity, with the r⁻² law - Create/fling planets, with a 10 s...
- Tue Jul 07, 2015 9:19 pm
- Forum: General Chat
- Topic: So I experimented with Ray Casting
- Replies: 7
- Views: 25714
Re: So I experimented with Ray Casting
Well, if looking up equations while making a game/sim is wrong, I don't want to be right. So yeah, looking up references is a good thing in my book. I think to clarify, I looked at C code for some help, sorry to have omitted that. Other than that, yeah, it's mostly scratch! I consider using referen...