Skip to content
← Back to Community
3D Physics Simulator using the Godot Engine!
Profile icon
AtriDey

I've had a lot of fun with Godot. First, I got familiar with GDScript and made a moving character. Then, I improved that initial character and also interacted with physics objects.

Now, I've made my first useful program. The same character can now plow into 3D shapes with accurate physics simulations.

Want more? For those of you with more... powerful computers, I've made another physics simulator, this one designed especially to be mean to

@DynamicSquid
, which can be downloaded here. I can make Mac and Linux versions if you need, but I doubt I'll have to.

As a challenge, try pushing the objects into the void. The best method is to glitch them through the unproportionately thick and overlapping walls that do nothing, apparently. You can try pushing over them, but this is no easy task; I was too lazy to add a roof but the walls are pretty high.

Voters
Profile icon
TristanHacker1
Profile icon
AgastyaSandhuja
Profile icon
dabs364
Profile icon
BricoMakerSpace
Profile icon
reachikjot93
Profile icon
R1l3yP
Profile icon
Foxstrike
Profile icon
rflctnsmusic
Profile icon
SixBeeps
Profile icon
Kookiez
Comments
hotnewtop
Profile icon
DynamicSquid

Sweet! This is the first Godot project I've seen!

Profile icon
AustinZhang1

is it just me or is Godot Physics Playground.js's line 7 mind blowing to anyone else

Profile icon
AtriDey

@AustinZhang1
You're not alone in being mind blown

Profile icon
syc1

@AtriDey
It's minified Javascript.

Profile icon
Wilke000
Profile icon
JackTon

@AustinZhang1

Reminds me of the code for this:
https://www.youtube.com/watch?v=DEqXNfs_HhY

I bet the interpreter interpreted that line as a kidney stone instead of code

Profile icon
NathanPp

@AustinZhang1
the reason he did that was so he could have 420 lines of code instead of 4,200

Profile icon
LTI2

Screen Shot 2020-08-03 at 2.10.38 PM
pro skills

Profile icon
SixBeeps

Gah, I need to learn Godot at some point.

Profile icon
AtriDey

@SixBeeps
I'm sticking to Godot because I started it, but I'd recommend you go with Unity, because it's more popular and easier to troubleshoot. Godot is naturally easier to learn, from what I hear, but Unity has more tutorials. BornCG is great, but I hear nobody can even compare to Brackeys.

Profile icon
viraatvv

Wow! what language did you use

Profile icon
AtriDey

@viraatvv
I created this in the Godot engine using a Python-like language called GDScript, and the engine automatically exported it to HTML.

Profile icon
jrjamir

Dude this is dope

Profile icon
namesarehard22

can we just admit that watching something getting destroyed/knocked down is satisfying

Profile icon
wantT0befriends

image
No objects! :)

Profile icon
EdwardKazmiersk

hehehehehee bulli em

Profile icon
NathanPp

i see you have 420 lines of code in Godot Physics Playground.js

Profile icon
AtriDey
Profile icon
zsc

Nice!

Profile icon
[deleted]

cool! i don't know what it means, but cool!

Profile icon
Mchoe2

Yes! I cleared the whole thing within one minute. This is a very nice game.

Profile icon
MarblesAndMore

Are you supposed to move the objects?

Profile icon
AtriDey

@MarblesAndMore
Yes, essentially. There isn't exactly much to do, it's more of a demo.

Profile icon
MarblesAndMore

@AtriDey
Ok, sorry

Profile icon
AtriDey

@MarblesAndMore
Nothing to apologize for, it was a good question.

Profile icon
AphixDev

I use Ue4 and Unity but not Godot LOL

Profile icon
AtriDey

@nt998302
Unity is the best apparently, but it needs C#. I can write C++ for UE4, but idk why I just decided to use Godot.

Profile icon
[deleted]

@nt998302
Same! I use Unity too, and I am learning Unreal Engine 4.

Profile icon
AphixDev

@AtriDey
In my opinion, UE4 is so much better than unity, so much that I believe that UE4 is the way to go for any game dev since it saves so much time...

Profile icon
AphixDev

@nt998302
But knowing Unity, there are some nice parts about it, however the inefficiency makes it not worth it (note this is my opinion and some people make really good games w/ UE4 but also note it takes longer LOL)

Profile icon
AphixDev

@quasiparticle
Cool! That was me a little while ago. You can ask me if you need help :D Ue4 is pretty weird sometimes :P

Profile icon
AtriDey

@nt998302
But Unity's particle system....

(never used it, just a Dani reference)

However, one of the most outrageous aspects of Unity is that YOU PAY EXTRA FOR DARK MODE.

Meanwhile, Godot is only dark mode. Don't like it? You're a fake programmer.

Profile icon
AphixDev

@AtriDey
UE4 is all free and powerful... (it comes with dark mode free too)

Profile icon
AphixDev

@AtriDey
And I have to say I like UE4's niagra particle system more than unity's...

Profile icon
AphixDev

@AtriDey
I've used both, but I'm a little biased since my goal can only be reached w/ ue4 :P

Profile icon
SixBeeps

@AtriDey

However, one of the most outrageous aspects of Unity is that YOU PAY EXTRA FOR DARK MODE.

Not if you're a student lol #freedarkmode

Profile icon
[deleted]

@AtriDey
Yeah, It's pretty annoying. However, there are some YouTube tutorials on how to edit Unity's binary files to switch to dark mode. Currently, on their free plan, you only get access to this grayish mode.

Profile icon
AphixDev

NICE

Profile icon
nahu1

How do you make stuff like this

Profile icon
AtriDey

@nahu
At the moment I'm in the midst of this tutorial series.

Profile icon
nahu1
Profile icon
nahu1

there is no video it says
NO


@AtriDey

Profile icon
AtriDey

@nahu
It works for me, but just try the first video and use the recommendations to watch the next.

Profile icon
nahu1

ok

@AtriDey
thx

Profile icon
nahu1

@AtriDey
what did you search on youtube to get the videos

Profile icon
AtriDey

@nahu
"borncg godot 3d tutorial"

Profile icon
nahu1

thank you

@AtriDey

Profile icon
Funkus

Good!

Profile icon
CodingGoose

This is awesome!

Profile icon
zplusfour

You are a good javascript physics dev
I am 11 and I don't know anything about physics

Profile icon
AtriDey

@ZDev1
I am 13 and I don't know anything about the HTML suite and just copied and pasted what Godot exported

Profile icon
zplusfour

@AtriDey
looooooooooooooooooooooooooool

Profile icon
legendrygamer

@AtriDey
hey i too am 13 yet i am not that good when did you start programming

Profile icon
AtriDey

@legendrygamer
I learned very basic C++ at age 10 just to flex. I learned a bit more at 11, but didn't actually take it seriously until a year ago (almost exactly lol) and learned Python, as well as failing to try and pick up a few other languages. With school picking up and me getting my first taste of actual, proper, exams, I took a break, but I started again in March when everything shut down.

Profile icon
zplusfour

@legendrygamer
I started programming when the covid-19 comes in the world
in 30th of december

Profile icon
legendrygamer

@AtriDey
i started when i was about to enter 13 but thanks to covid i counldn't go and i started with c

Profile icon
[deleted]

@AtriDey
Nice! I first started coding at the age of 6. Mainly using turtle to draw spirals and making basic terminal games.

Profile icon
FAtManJOTARO

Wow, I'm 14 and I barely know how to code. You're a prodigy

@AtriDey

Profile icon
zplusfour

@legendrygamer
don't thank covid-19
if you thank him, it will make it longer :'(

JK

Profile icon
zplusfour

@quasiparticle
very young...

Profile icon
zplusfour
Profile icon
[deleted]

@ZDev1
Thanks!

Profile icon
legendrygamer

@ZDev1
sure man lol

Profile icon
Codemonkey51

cool image

Profile icon
mgher

Hey

@AtriDey
This physics engine is awesome! We would love to include it on our website https://physimx.tech . If you want you can join our discord to learn more about what we do https://discord.gg/4RAknfK But yeah, great project!

Profile icon
AtriDey

@mgher
Actually, the engine is the open-source Godot engine. However, if you want to implement this specific project, don't hesitate to just copy and paste!

Profile icon
EpicGamer007

Is it just me or is rolling the ball extremely satisfying?

Profile icon
AtriDey

@AbhayBhat
Welp, turns out spending 20 minutes tuning the ball acceleration was worth it.

Profile icon
georgina3
Profile icon
Name12

I haven't seen anything like this before

Profile icon
Name12

it's so cool!! definitly an upvote for u.

Profile icon
Barry123

Wow! I can't stop playing now!

Profile icon
KimiTian08

cool

Profile icon
CodingPseudonym

This is awesome!

Profile icon
jackou

Didn't know you could use Godot in a browser. Very neat! It'd be cool if you could drag and drop items.

Profile icon
AtriDey

@JacksonPhilips
Yep, it's pretty simple

  1. Export to HTML5
  2. Make a HTML, CSS, JS repl
  3. Copy the html, js, pck, and wasm files to repl.it
  4. Delete the default script.js
  5. Copy and paste all code in the new html file to the default index.html and delete the other HTML file

As for drag and drop, maybe I'll eventually figure it out, but for now I can't even move the camera. That's a good idea though, once I can actually use Godot to its full potential, I can make a whole game on that!

Profile icon
StringentDev

@AtriDey
you can just drag and drop to the files section, it should (if they are the same name) replace them.

Profile icon
MatthewBrink

Uhhh, This is the example project, You didn't make this