Jysics: Physics Again on steroids
LoveFromSkyy (130)
Nice job on this! Care to give me some information on how you were able to make this? ^-^
tehgingergod (4)
@LoveFromSkyy I forked the Physics Again repl and... made some edits
LoveFromSkyy (130)
Hmm, I never saw the Physics Again repl, would you mind linking it so I can compare? @tehgingergod
LoveFromSkyy (130)
I know the updates you made but I never got the chance to see the original- that's what I mean. @tehgingergod
tussiez (1509)
@LoveFromSkyy Trending, "3D Vehicle physics"
tehgingergod (4)
@tussiez surprise surprise
Nice! Very simple changes to it though..
How dare you unlock the full capabilities of my car by enabling the somewhat flawed speedometer?! Lol@tussiez I would definitely love to see more 3D-related stuff on Repl tho, this is pretty good!
@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.
@tehgingergod Interesting to see how you will do physics on SortaCraft.. Never been able to do it right
@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
@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
@tehgingergod If you make too many >20 it will freeze
@tehgingergod Cool!
@tussiez Weird. Maybe that's just your browser. I've added some new stuff, like more shapes, so try it now.
@tussiez uh.... the speedometer gives random speeds.
@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
@Rebelthunder Thats why I disabled it.. lol @tehgingergod enabled it again
@Rebelthunder I know. It's a bit flawed, sadly
@tehgingergod Yes my fault
@tussiez OK SO
I screwed up the terrain generator somehow??????
can you fix it please
@tussiez nvm fixed it lmao
@tehgingergod Lol
@tussiez I have just spent 3 days on beautifying this game, what do you think
@tussiez "simple changes" EH?????
@tehgingergod This is awesome! Nice job!
@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
@tehgingergod :D
@tussiez any feature ideas? I'd be happy to hear them
@tehgingergod Idk, you made it better.. hmm
Multiple cars? I think I made that possible
@tehgingergod Oh, and maybe models? Just load the wheels seperately
@tussiez p e r h a p s
multiplayer is yes
@tehgingergod Multiplayer?!?!?!! oooo
@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
@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
@tussiez where's the racetrack model you were going to use?
I'm thinking of adding it back
@tehgingergod (This is how most games add physics to models)
@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
@tussiez fun. The commented out code uses a heightfield mesh, I'm guessing that didn't work?
@tehgingergod I also modified the physics code - still doesn't work correctly
@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