r/MinecraftMod • • 1d ago • Bravo 1

Messing around with making physics based mobs

It was originally just a silly idea, but it's actually looking super cool! So I decided to show you all! Should I continue investing my time into this? Or is it not something anyone would want?

The way it works is the mobs bodies are physics objects, and they actually keep themselves upright through limb motor control. Running requires them to try and keep themselves balanced. I did make their heads weightless, because of how big they are, they would face plant every time them moved.

1.0k Upvotes

63 comments sorted by

39

u/ScwiddIsScwidd 1d ago

how performant is this?

45

u/Salt_and_Fries 1d ago

I haven't played a real world with it, so it might be pretty cpu intensive

11

u/Raphael_Grove 1d ago

Yes I’m curious too! This mod looks awesome and so silly! I’d be really interested to see how it works against fighting mods like skeletons and zombies. Like could gun mods or sword hits cause knockback on their limbs and make them fall over?

11

u/RandomOnlineBro 1d ago

An entity cramming situation would set your PC on fire

6

u/Bread_Enjoyer228 23h ago

nah explode on the spot

81

u/emil836k 1d ago

So, about that GitHub page…

54

u/Salt_and_Fries 1d ago • Bravo

It's not a mod right now. The git is entirely on my PC. But if people want it I'll make the GitHub public like the rest of my mods!

51

u/Arthur_morgan457 1d ago

As a representative of the people I say we want this

8

u/NotSoFunny_Redditer 12h ago

Thank you Arthur Morgan

12

u/SkinInevitable604 1d ago

Please please please please

7

u/TotoShampoin 20h ago

Yes please

1

u/Firebirdgaming08 2h ago

I'm not even a PC player and I vote YES!

Think of the technology

0

u/[deleted] 19h ago

[deleted] — view deleted comment

1

u/emil836k 13h ago

Wrong guy

1

u/Jbolt3737 11h ago

Yeah sorry

22

u/BarbsFPV 1d ago

A mob here and there having advanced physics won’t be too taxing on most PCs. Having an entire world full of mobs with advanced physics will probably slow all but the most beastly PCs to a crawl.

This looks awesome though, but even resource packs like fresh animations can really bog you down, and that’s pretty light compared to this.

Everything in the game runs on the same thread so that’s the main reason they try to keep mob AI and movement pretty basic.

8

u/Salt_and_Fries 1d ago

Yah I was thinking maybe only having mobs within like 5 chunks having active physics? Also mobs that the player directly interacted within the past minute, so sniping a zombie or something will make it kick into physics mode. Idk, I'm brain storming optimization fixes

6

u/Kakllakl 1d ago

Def should have different versions though for people's pc's sake. I could see options to only allow x amount of creatures at a time to experience physics based on distance and interaction. But honestly this looks very funny, is it gonna have different weights or is everything going to be paper boxes that get tossed with knockback. Or will only the knockback or punch enchantment throw mobs?

1

u/Salt_and_Fries 1d ago

I'm going for heavy weights. So the player should struggle to tip a cow for example

2

u/Jwhodis 1d ago

Not sure how taxing it would be to check but you could likely implement a way to only process the physics for entities in view

Another thing is not doing physics for crammed entities, like a bunch of cows in a 1x1 hole.

4

u/Defense_Turtle 1d ago

this mod but for playermodel would get thousands of interested players imo.

1

u/Salt_and_Fries 22h ago

That would play like the game "Peak"

2

u/CursedBM81 10h ago

Pretty much every Landfall game plays like Peak in terms of movement since they all use physics for that

2

u/Zestyclose-Ideal2395 20h ago

I like the animation principle that these are block based robots before they're animals

1

u/Salt_and_Fries 20h ago

Yes! The logic is functionally very close to his someone would program a robot

2

u/Maskoloxyn 17h ago

if you base it on sable and that they are sort of blocks first, people can make themselves into mechanisms or augment themselves through mods like pocket sized and putting stuff on themselves I don't know how this would work

2

u/Natural-Investment34 20h ago

Is the player also going to be psysics based?

1

u/Salt_and_Fries 14h ago

Not right now, but I could experiment with it

2

u/pixel_demonic 12h ago

is this use Sable?

1

u/Salt_and_Fries 12h ago

I did originally experiment with sable. But sable was entirely block physics, it didn't have any means to apply it to Entities. So I never could get it to work.

2

u/Jbolt3737 11h ago

Please make the rabbit have jumping physics, these mobs are so cute wadling around and rabbits are my favorite animal

1

u/Salt_and_Fries 9h ago

I am scared to do rabbits

2

u/Jbolt3737 6h ago

I don't know how exactly you're doing this but I assume each leg has a desired rotation or target to point at or something. How I'd implement it: just take the rotations from the vanilla animation at the idle point, A, and the last frame of the jump before they leave the ground, B. When the rabbit jumps you have the desired rotation go instantly from point A to B and as long as the legs are strong enough the rabbit should be sprung into the air (try to make it so they use their front legs and head to keep their body upright if possible)

9

u/Edmord17 1d ago

They move around like if they were avatars in VRChat, they way pig turn around to look at us felt way too uncanny omg, cool stuff

7

u/Investing_in_Crypto 1d ago

Cant play this game its got pig physics

3

u/LaDestitute 1d ago

cows & cows & cows energy mixed with rayman limbs vibes

3

u/CompetitiveLeg7841 1d ago

Totally Acubic Binecraft Simulator

3

u/mas-issneun 1d ago

it looks too real... im scareb.

3

u/david_bivab 1d ago

Uhh sable?

3

u/Kair0_1299 21h ago

Pull mod on cf and modrinth, it's peak

2

u/After-Distance6134 1d ago

uhmm
seems cool
but too physicy or smth id day
dontget me wrong i like smth like ts https://modrinth.com/resourcepack/reanimated-blue but it looks too much

3

u/unga_bunga_1987 1d ago

its less meant to look like physics but seems to be going for physics driven ragdolls controlled by procedural animation

2

u/ethan125 1d ago

This is a neat idea! I was expecting some kind of pig turning into a creeper joke on the last gif lol

2

u/GoldSunLulu 1d ago

I like the little turnaround but i dont like how they run and stuff. Heledron has a great video on how he made inverse kinematics, with a lot of good info for any Ik Programming really

2

u/NoobyNoob0102 1d ago

omg the 5th gif reminded me of kick the buddy

I forgot that game even existed

2

u/TheGreatQuetz 1d ago

I wonder what it'd look like if you tried to make a mob walk that has multiple bones in its legs.

Unfortunately the only vanilla mob like that is the Ender Dragon which only flies.

2

u/MystifyreMusic 1d ago

looks good and I see the vision but it's a little too much rn. the limbs get disconnected from the mob a little too much at times

2

u/Interesting-Bag-1281 1d ago

99+ missed calls from VIDEOCULT

2

u/badredstoneer 23h ago

Oh that's sick

2

u/skydisey 22h ago

Whoa procedural animations! I bet rain world MC community want to hear about you

I guess being named Salt- gives you +100 to coding skills btw, absolutely gorgeous

2

u/No_Context2723 21h ago

Looks awesome! But you should make it so that only mobs in a certain radius to the player are simulated (4 - 6 chunks maybe)

2

u/7Shinigami 16h ago

Woahhh, crazy!!

2

u/artmogus 15h ago

I'm not sure if this looks godsent or cursed lmao, I like it anyway though, keep it up!

2

u/I_am_a_Pengy 15h ago

this is awesome !!!!!!

2

u/Witty-World2916 10h ago

genuinely one of the most needed things I've seen in a while. Keep it up please!

2

u/Mystic-256 8h ago

this is amazing

2

u/termoskonferencyjny 4h ago

horse plinko when?

2

u/TIMMYDGOD3 2h ago

I want it

1

u/Rockenpai 17h ago

Actually peak

1

u/geneyfarrell 15h ago

Definitely keep working on that pig because seeing it waddle around like that is honestly the cutest thing I have seen in a blocky world

1

u/Economy-Energy-8394 1h ago

wahhh so cuteeee