Skip to content

Replace visual breast physics with weighted deformation.#398

Open
OnlyJugs wants to merge 3 commits intoWildfireRomeo:fabric-1.21.11from
OnlyJugs:fabric-1.21.11-experimental
Open

Replace visual breast physics with weighted deformation.#398
OnlyJugs wants to merge 3 commits intoWildfireRomeo:fabric-1.21.11from
OnlyJugs:fabric-1.21.11-experimental

Conversation

@OnlyJugs
Copy link
Contributor

What kind of PR is this?

  • Code change
    • These changes have been tested (if applicable)
  • Documentation
  • Translation
  • Other

What changes does this PR make?

It replaces the breasts' visual physics effects with proper deformation, so the breasts move in a more natural attached looking way rather than as two blocks that move independently from the body (even though they technically still do).

Anything else we should know?

The existing physics simulation is still the same. Only how the output is applied to the breasts is different. I hope this ends up in the mod, as I am quite proud of the results and believe lots of people would like the visual change.

@OnlyJugs OnlyJugs force-pushed the fabric-1.21.11-experimental branch from 3fd2692 to ea72eb8 Compare February 16, 2026 14:03
@OnlyJugs OnlyJugs changed the title Fabric 1.21.11 experimental Replace rigid-body breast physics with weighted vertex deformation. Feb 16, 2026
@OnlyJugs OnlyJugs changed the title Replace rigid-body breast physics with weighted vertex deformation. Replace visual breast physics with weighted deformation. Feb 16, 2026
@OnlyJugs
Copy link
Contributor Author

Alright, now it looks fully complete. I did some more testing and noticed that the swaying didn't deform as it should.


protected void renderGlint(PoseStack matrixStack, SubmitNodeCollector renderQueue, S state, BreastModelBox box) {
protected void renderGlint(PoseStack matrixStack, SubmitNodeCollector renderQueue, S state, BreastModelBox box, BreastSide side) {
PhysicsDeformation physics = createPhysicsDeformation(side);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason why you're creating this again instead of providing the instance the caller already has?

Comment on lines 226 to 227
// Physics translations removed from the matrix stack — now applied per-vertex in renderBox()
// weighted by Y-distance from the attachment edge, so the base stays anchored to the body.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant comments - was this generated by an llm?

@WildfireRomeo
Copy link
Owner

I will look into this when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants