- Home /
Suggestions for breast physics?
I've been trying to understand Unity's physics system. I'm trying to add physics to the breast bones on my model, and having quite a difficult time with it. At first, the physics weren't working at all until I realized that I needed to separate the bones from the parent armature. I added rigidbodies and spring joints and it somewhat works.
The issue, however, comes when I start rotating or spinning my character. The mesh seems to get pretty deformed and I have no idea why that is. I've tried freezing the rotation of the rigids, but that doesn't help at all.
Should also mention that I tried Fishypants' JiggleBone script and could not get it to work at all. I assumed maybe my rig is wrong somehow.
Any suggestions or references I can use would be much appreciated.
Gentlemen, I do believe we have a question about jiggle physics.
OP is referring to the way that human breast will move independently of the chest wall, and act as independent masses.
best example of reference would be Dead or Alive: Extreme Beach Volleyball
$$anonymous$$y first question about this would be about the JiggleBone, what was not working? Was it giving errors in console?? Or just nothing at all...
Answer by Loius · Dec 31, 2012 at 01:52 AM
You may have more luck with manual adjustment. You could simulate simple physics, and move the breasts according to the difference in their last position versus their current position.
To do any jiggle at all, the breasts need their own skinned bones in Blender (so they affect the mesh), and they may need to be exported with no animation if you want physics control.
The first thing you should try is to move the jiggliness to the LateUpdate function (which runs after animation is applied, but "before objects are rendered"). You should be able to override all animation movement with your own. Just move the booby bones around as desired; apply your own hard limits and/or damping on their movement relative to their 'origin' (where they are, relative to the chest, when at rest).
Unfortunately, Blender's default fbx exporter applies animation to all bones. In Blender 2.49, you can access the export script and make a small change to only export animation for animated bones (it's reasonably clear what change to make, but I don't have access to my files right now so I can't point it out). The file is named fbx_export.py (or export_fbx.py; my memory's fuzzy).
I'm sure it's possible to alter 2.5's exporter as well, but I haven't had occasion to try yet.
I think it may be possible to remove curves from an AnimationClip from within Unity, but it's not well documented and I haven't tried my hand at that either.
Also this is the most serious I've ever talked about boobies.
Hmm, Blender applying keyframes to all bones would explain some of the initial issues I was getting. I'm currently using Blender 2.64, I will see if I can or can't work with that.
I unfortunately couldn't figure out changing the export script, but your answer about animating all the bones was exactly right. I threw in some animations from the $$anonymous$$ecanim Starter asset (which obviously don't contain any breast bones) and everything seemed to work fine with just normal spring joints. I did not get the deform issue I was having before.
I still need to figure out how to get my own animations working correctly, and probably create a script so it's a bit more realistic, but this is definitely a step in the right direction. Thank you.
Your answer
Follow this Question
Related Questions
How to limit the motion direction of a GameObject? 1 Answer
How to make foot don't cross the ball? 0 Answers
Camera gets flung off of the map when the player collides with certain objects. 0 Answers
Two Bone IK constraint with more than 2 bones on my arm. 0 Answers
How to make Rigidbody.AddForce less delayed in Unity3D? 0 Answers