Quantcast
Channel: Questions in topic: "measure"
Viewing all articles
Browse latest Browse all 91

Custom Ragdoll Autorigger Setup

$
0
0

Scenario : I am writing a custom ragdoll setup script I can drop on any rig that will take joint chains tagged with "Rig" on the joint object to indicate that the joint/joint chain should be set up with rigidbody, capsule collider and character joint. The joint lengths and transform can be derived from standard algorithms of angle and distance from parent to child objects.

Question : The capsule collider is scaled to match the joint of the rig when done manually. No problem there. In a script however there are no units to use to determine scale back and forth..meaning the joint comes in imported at a scale of 1,1,1 and the collider is scaled at 1,1,1 but they rarely if ever match up dimension wise. What i want to do is find the length of the joint from root to tip, scale the collider to that length and move it half the joints length down the z axis so the joint and collider are properly overlapped. My issue is where do I or how do I extract the information needed to ensure my scaling is correct in regards to bone length. With measured units it would be a breeze but I can have a joint 1 unit long that is scaled to 1 or a joint 1000 units long and it is still scaled to one.


Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>