Skip to content
← Back to Community
Jysics: Physics Again on steroids
Profile icon
GingerIndustries

This is a version of @tussiez's Physics Again, but with lots of extra stuff ranging from summoning cubes to an ACTUAL FORCE PUSH
It's still being worked on, so expect more to come!
e

PLAY HERE

Voters
Profile icon
htmlprogramer
Profile icon
SaajidRahman
Profile icon
Thehappysquid
Profile icon
OwenBlack
Profile icon
piphi
Profile icon
tussiez
Profile icon
LevonJohnson
Profile icon
GingerIndustries
Comments
hotnewtop
Profile icon
27whuang

The peril map doesn't load in the ground for me

Profile icon
GingerIndustries

@27whuang i know

Profile icon
27whuang

@tehgingergod Is it supposed to do that

Profile icon
GingerIndustries
Profile icon
27whuang

@tehgingergod so like r y supposed to build a very large platform?

Profile icon
tussiez

Nice! Very simple changes to it though..
How dare you unlock the full capabilities of my car by enabling the somewhat flawed speedometer?! Lol

Profile icon
tussiez

@tussiez I would definitely love to see more 3D-related stuff on Repl tho, this is pretty good!

Profile icon
GingerIndustries

@tussiez don't worry, there's lots more coming. This will eventually become sorta physicsagain and sortacraft combined, with more shapes and a better way to place them.

Profile icon
tussiez

@tehgingergod Interesting to see how you will do physics on SortaCraft.. Never been able to do it right

Profile icon
GingerIndustries

@tussiez I'm basically going to leave it with Physijs. The cubes stack fine now, so they should stack fine now matter how many there are

Profile icon
GingerIndustries

@tussiez I've made it so that you can now summon cubes where you click. That one change turned this from a weird physics sandbox to a building game

Profile icon
tussiez

@tehgingergod If you make too many >20 it will freeze

Profile icon
tussiez
Profile icon
GingerIndustries

@tussiez Weird. Maybe that's just your browser. I've added some new stuff, like more shapes, so try it now.

Profile icon
Rebelthunder

@tussiez uh.... the speedometer gives random speeds.

Profile icon
tussiez

@tehgingergod Wdym? The JavaScript library (Ammo) is a direct port, so it's unoptimized for JavaScript. This means only a few objects will slow it down, a lot

Profile icon
tussiez

@Rebelthunder Thats why I disabled it.. lol @tehgingergod enabled it again

Profile icon
GingerIndustries

@Rebelthunder I know. It's a bit flawed, sadly

Profile icon
tussiez

@tehgingergod Yes my fault

Profile icon
GingerIndustries

@tussiez OK SO
I screwed up the terrain generator somehow??????
can you fix it please

Profile icon
GingerIndustries

@tussiez nvm fixed it lmao

Profile icon
tussiez
Profile icon
GingerIndustries

@tussiez I have just spent 3 days on beautifying this game, what do you think

Profile icon
GingerIndustries

@tussiez "simple changes" EH?????

Profile icon
tussiez

@tehgingergod This is awesome! Nice job!

Profile icon
GingerIndustries

@tussiez hooray
I've still got a ton of stuff to do, like figure out why night mode's skybox is broken, but I'm glad you like it

Profile icon
tussiez
Profile icon
GingerIndustries

@tussiez any feature ideas? I'd be happy to hear them

Profile icon
tussiez

@tehgingergod Idk, you made it better.. hmm
Multiple cars? I think I made that possible

Profile icon
tussiez

@tehgingergod Oh, and maybe models? Just load the wheels seperately

Profile icon
GingerIndustries

@tussiez p e r h a p s
multiplayer is yes

Profile icon
tussiez

@tehgingergod Multiplayer?!?!?!! oooo

Profile icon
GingerIndustries

@tussiez yeaaaaaaa, it turns out that three.js does not like it when I try to get a geometry from a 3d model, and Physijs does not like it when I try to pass an object3d off as a mesh

Profile icon
tussiez

@tehgingergod Eh, loading the actual geometry will probably be too slow. Load it as an object3D and make an invisible box around it, or, if you're in a good mood, maybe a compound shape

Profile icon
GingerIndustries

@tussiez where's the racetrack model you were going to use?
I'm thinking of adding it back

Profile icon
tussiez

@tehgingergod (This is how most games add physics to models)

Profile icon
tussiez

@tehgingergod I lost it in my Downloads folder, will let you know if I find it.
You will also need to build a "hitbox" for it

Profile icon
GingerIndustries

@tussiez fun. The commented out code uses a heightfield mesh, I'm guessing that didn't work?

Profile icon
tussiez

@tehgingergod I also modified the physics code - still doesn't work correctly

Profile icon
tussiez

@tehgingergod If you have Blender or a 3d modeling program, you should be able to build the "hitbox" fairly easily. Just import and load the simple objects

Profile icon
LoveFromSkyy

Nice job on this! Care to give me some information on how you were able to make this? ^-^

Profile icon
GingerIndustries

@LoveFromSkyy I forked the Physics Again repl and... made some edits

Profile icon
LoveFromSkyy

Hmm, I never saw the Physics Again repl, would you mind linking it so I can compare? @tehgingergod

Profile icon
LoveFromSkyy

I know the updates you made but I never got the chance to see the original- that's what I mean. @tehgingergod

Profile icon
tussiez

@LoveFromSkyy Trending, "3D Vehicle physics"

Profile icon
GingerIndustries
Profile icon
GingerIndustries

@tussiez surprise surprise