#Physics System

1 messages · Page 1 of 1 (latest)

pine panther
#

Spent about a day or two working on this, slowly losing my mind.
Integrated a physics engine into minecraft and made a blockbench model converter to go along with it.

Engine

  • Implemented using the CANNON ES physics engine
  • The physics implementation is very basic, there's no collision with blocks, only with a set floor and other objects in the world.

Model Converter

The blockbench model converter is a regolith filter that reads models in the "RP/models/entity/physics/prefabs" folder and generates the necessary geometry, behavior, resource, and script files to make a physics prefab work.

  • Sets up all required entity files for a prefab
  • Sets up a script to easily summon a prefab, including all the physics objects and constraints.
  • Using a prefab is as simple as running "prefab ${name}" in the chat.

Follow up post: #1204605313781862460 message

#

No GitHub repo yet, code needs quite a bit of clean up

dull solar
#

really cool 👍

opal socket
#

Danng looks great so far, and just in about two days, MEGA impressive

onyx gull
#

Dang that’s some really cool stuff!

fair horizon
#

That's really impressive, good work!!!

pine panther
#

I just set it up to render items at block scale, making it look like any block

#

block ${itemId} lets you create a new 1x1x1 collision object that renders an item

violet moth
#

insane

frigid crater
#

Looks amazing!!

mystic verge
#

sick as hell bao_icon_particles bao_icon_particles bao_icon_particles

cedar fjord
#

dude thats sick

twilit crypt
#

very little friction lol

dusk grove
#

Friction is customizable

glad oriole
#

very cool

lapis lintel
#

SO cool!

#

ill be waiting for physics constraints

#

(springs, hinges etc)

pine panther
#

those are already in, though I forgot about springs

#

the ragdoll is an example of heavy constraint usage

lapis lintel
#

ooh, i suppose the engine got them already?

pine panther
#

yeah, it's a pre-built library called CANNON ES, you can find it online

radiant salmon
#

Beautiful

final storm
#

Looks very accurate!

lucid carbon
#

Waos

viral kite
flint jungle
#

This is the result of what you were working on in chat the other day? Just wow...! Props to you dude! Great job.

#

👍

amber yacht
cedar fjord
#

like this

paper pier
onyx gull
#

Yea

spring grove
#

WOW

#

I will love to see the ragdoll falling on stairs xd

gilded tiger
dusk grove
#

Nah they didn't use proper physics for that, what they did is pretty sick tho

final storm
#

@pine panther Will you be uploading a template soon?

amber yacht
#

We have to be patient for release so don't pressure him or he won't be able to clean the code.

pine panther
#

I do plan on creating a GitHub repo, but I haven't had the time to clean things up

amber yacht
astral python
#

Could u release the rag dolls I wanna play around please 😅

pine panther
#

there's a lot going on right now and I'm struggling to find the time to do so, once I get an hour or so of free time, I'll clean up the code and setup a public repository. Keep in mind that this is by no means a complete physics system, it will not interact with the world properly or anything of that sort, it will only interact with a predetermined flat ground

astral python
#

Say no more that’s sick still

languid wigeon
#

🤯

astral python
#

Fr

astral python
#

Ten years later 👋

astral python
#

DAMN BEO

coarse ridge
#

still smartest in bedrock community

dusk grove
#

Facts

#

Magic dipstick is beautiful