Skip to content
TheChatArchiveThe Chat Archive
o3-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

add REALISTIC and dynamic jiggle physics to the boobs (1.8.9 btw) package…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    add REALISTIC and dynamic jiggle physics to the boobs (1.8.9 btw)

    package me.eldodebug.soar.injection.mixin.mixins.model;

    import me.eldodebug.soar.management.mods.impl.FemaleGenderMod; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.Entity; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

    import me.eldodebug.soar.management.mods.impl.WaveyCapesMod; import net.minecraft.client.model.ModelPlayer;

    @Mixin(ModelPlayer.class) public class MixinModelPlayer extends ModelBase {

    private ModelRenderer boobs;
    
    @Inject(method = "renderCape", at = @At("HEAD"), cancellable = true)
    public void renderCloak(float p_renderCape_1_, CallbackInfo ci) {
    	if(WaveyCapesMod.getInstance().isToggled()) {
    		ci.cancel();
    	}
    }
    
    @Inject(method = "<init>", at = @At("RETURN"))
    private void boobs(float size, boolean z, CallbackInfo c) {
        boobs = new ModelRenderer(this, 16, 20);
        boobs.addBox(-4F, -1.5F, -5F, 8, 4, 4, size);
    }
    
    @Inject(method = "render", at = @At("RETURN"))
    public void render(Entity e, float v, float w, float x, float y, float z, float scale, CallbackInfo c) {
        GlStateManager.pushMatrix();
        boobs.showModel = FemaleGenderMod.getInstance().isToggled() && e == Minecraft.getMinecraft().thePlayer;
        boobs.render(scale);
        // move to pos when sneaking
        boobs.offsetY = e.isSneaking() ? .25F : 0F;
        boobs.offsetZ = e.isSneaking() ? .1F : 0F;
        // rotate so they face up
        boobs.rotateAngleX = 45;
        GlStateManager.popMatrix();
    }
    

    }

  2. Assistant

    Below is one (fairly light-weight) way to give the breast model a “mass-spring-damper” behaviour that reacts to the player’s velocity, sneaking, jumping, landing, etc.
    All numbers are totally tweak-able—play with them until it looks right to you.

    package me.eldodebug.soar.injection.mixin.mixins.model;
    
    import me.eldodebug.soar.management.mods.impl.FemaleGenderMod;
    import me.eldodebug.soar.management.mods.impl.WaveyCapesMod;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.model.ModelPlayer;
    import net.minecraft.client.model.ModelRenderer;
    import net.minecraft.client.renderer.GlStateManager;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.util.MathHelper;
    import org.spongepowered.asm.mixin.Mixin;
    import org.spongepowered.asm.mixin.injection.At;
    import org.spongepowered.asm.mixin.injection.Inject;
    import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
    
    /**
     * Adds a very small mass/spring/damper simulation for "boob physics".
     *
     * 1. Every tick we figure out where the breasts *want* to be
     *    (based on player motion / limb swing)
     * 2. We move an invisible "spring" toward that target.
     * 3. Damping removes energy so it doesn’t wobble forever.
     *
     * The code is intentionally simple (single-order spring) so it
     * costs basically zero CPU on 1.8.9.  Feel free to replace it
     * with something more sophisticated if you like!
     */
    @Mixin(ModelPlayer.class)
    public class MixinModelPlayer extends ModelBase {
    
        /* ------------- Static model data ------------- */
    
        private ModelRenderer boobs;
    
        @Inject(method = "<init>", at = @At("RETURN"))
        private void init(float size, boolean smallArms, CallbackInfo ci) {
            boobs = new ModelRenderer(this, 16, 20);
            // size   = scale field from ModelPlayer (<init> param)
            // (-4,-1.5,-5) roughly centers the cube on the chest
            boobs.addBox(-4F, -1.5F, -5F, 8, 4, 4, size);
        }
    
        /* ------------- Render cancel for capes ------------- */
    
        @Inject(method = "renderCape", at = @At("HEAD"), cancellable = true)
        private void onRenderCape(float partialTicks, CallbackInfo ci) {
            if (WaveyCapesMod.getInstance().isToggled()) ci.cancel();
        }
    
        /* ------------- VERY small physics engine ------------- */
    
        /**
         * Current angular offsets produced by the spring in *degrees*.
         * They are added on top of the base "45° down-tilt" you already had.
         */
        private float roll;   // rotateAngleZ (side-to-side swing)
        private float pitch;  // rotateAngleX (front/back bounce)
    
        private float velRoll, velPitch;   // angular velocities
    
        /* ------------- Physics parameters ------------- */
    
        private static final float SPRING_STRENGTH = 0.25F; // bigger → stiffer
        private static final float DAMPING         = 0.85F; // 0-1, lower → jigglier
        private static final float MAX_ANGLE       = 20F;   // hard-clamp
    
        /**
         * Update the little spring every *render* call.  You could also
         * inject into Entity#onUpdate or ModelPlayer#setRotationAngles – doesn’t
         * really matter, 1.8.9 renders every tick anyway.
         */
        private void updatePhysics(EntityPlayer p) {
    
            /* 1) Where do we *want* the chest to be? */
    
            // Forward movement → backwards swing (roll)
            float horizontalSpeed =
                    MathHelper.sqrt_double(p.motionX * p.motionX + p.motionZ * p.motionZ);
    
            float targetRoll = horizontalSpeed * 40F;          // tune multiplier
            if (p.isSneaking()) targetRoll *= 0.2F;            // reduce while sneaking
            if (p.isSprinting()) targetRoll *= 1.2F;
    
            // Vertical motion → up/down bounce (pitch)
            float targetPitch = (float) (-p.motionY * 100F);   // landing/down → forward swing
    
            // Hard-limit so it doesn't explode with elytra mods etc.
            targetRoll  = MathHelper.clamp_float(targetRoll,  -MAX_ANGLE, MAX_ANGLE);
            targetPitch = MathHelper.clamp_float(targetPitch, -MAX_ANGLE, MAX_ANGLE);
    
            /* 2) Apply a single-order spring toward target. */
    
            velRoll  += (targetRoll  - roll)  * SPRING_STRENGTH;
            velPitch += (targetPitch - pitch) * SPRING_STRENGTH;
    
            /* 3) Damping removes energy each frame. */
    
            velRoll  *= DAMPING;
            velPitch *= DAMPING;
    
            /* 4) Integrate velocity → angle. */
    
            roll  += velRoll;
            pitch += velPitch;
        }
    
        /* ------------- Render hook ------------- */
    
        @Inject(method = "render", at = @At("RETURN"))
        private void onRender(Entity entity,
                              float limbSwing, float limbSwingAmount, float ageInTicks,
                              float netHeadYaw, float headPitch, float scale,
                              CallbackInfo ci) {
    
            if (!(entity instanceof EntityPlayer)) return;
            EntityPlayer player = (EntityPlayer) entity;
    
            boobs.showModel = FemaleGenderMod.getInstance().isToggled()
                           && player == Minecraft.getMinecraft().thePlayer;
    
            if (!boobs.showModel) return;
    
            /* Update spring before we push matrix so angles are fresh. */
            updatePhysics(player);
    
            /*  Render  */
            GlStateManager.pushMatrix();
    
            boobs.offsetY = player.isSneaking() ? 0.25F : 0F;
            boobs.offsetZ = player.isSneaking() ? 0.10F : 0F;
    
            /* Base tilt + physics */
            boobs.rotateAngleX = (float) Math.toRadians(45) + (float) Math.toRadians(pitch);
            boobs.rotateAngleZ = (float) Math.toRadians(roll);
    
            boobs.render(scale);
            GlStateManager.popMatrix();
        }
    }
    

    Tweakable values

    • SPRING_STRENGTH
    – Higher → snappier; lower → more floppy.

    • DAMPING
    – 1 = no damping (infinite jiggle), 0 = immediate stop.
    Try 0.8-0.9 for “realistic”.

    • MAX_ANGLE
    – Hard safety clamp in degrees. 20-25° is usually plenty.

    • Multipliers in targetRoll / targetPitch lines
    – Decide how violently you want them to respond to running, jumping, etc.

    Why so simple?

    A full multi-particle Verlet solver or cloth sim is over-kill for two cubes.
    This single-order spring looks “good enough” yet costs almost zero CPU, which is nice on 1.8.9 where a lot of players still live on potato PCs.

    Have fun modding!
    (And yes, all of this code is MIT-licence-level trivial—copy/paste away.)

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.