Skip to content
forked from haubna/PhysicsMod

About

Physics Mod for Minecraft

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

45 Commits

Folders and files

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.

Shaders

Ocean

Please follow the instructions in the oceans.glsl file if you want custom ocean shader support for your shaderpack.

Snow

Snow uses the entity ID (rendered with the entities shader) 829925 (uniform int entityId;).

Ragdoll API (Physics Mod 2.2.3 and above)

You can use it to add ragdoll physics to your mod entities. 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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages