Skip to content

StealthMeister1/PhysicsMod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Physics Mod

Feel free to report any bugs here. Please only report bugs on the newest version of the mod. Legacy versions of Minecraft will not get updates. I only work on this mod from time to time so don't expect immediate bug fixes! Thanks :)

Ragdoll API (Physics Mod 2.2.3 and above)

You can use it to add ragdoll physics to your mod entities. First make sure that in your fabric.mod.json you add "physicsmod": ">=2.2.3" under "suggests". To make the physics work with your mod USE the ModelPart class for your custom entities and not create your own one, since I hook into this class. You will need to create a RagdollHook and add it via RagdollMapper.addHook(RagdollHook). A ragdoll hook example can be found in this repo.

RagdollHook

filterCuboidsFromEntities is to filter excessive cubes from the model that can get created through some feature overlays in Minecraft and would cause multiple cube drops of the same model.

map is needed to create the connections between the cubes. If you are not sure which cubes should get connected you can get some info via RagdollMapper.printModelParts(model).

Thanks to fabmax for creating a PhysX JNI Wrapper: https://github.com/fabmax/physx-jni

Mod page: https://minecraftphysicsmod.com

About

Physics Mod for Minecraft

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%