Does anyone here know coffeeI’m trying to add to the target node that comes with C4D. I want to add code that would
make a bone scale to reach its target as well as aim at the target. Here is the code I have so far but I’m stuck on how to make the bone scale to reach. I asked on the plugin cafe but that list does not seem very active and have not recived an answer so I thought I would ask here.
[left]How do I go about setting the bones length to the var (dist) I have?
[left]Here is the code with my line added in:
var mobj = Muscle->GetMg();
var tobj = Target->GetMg();
var p1 = mobj->GetV0();
var p2 = tobj->GetV0();
[left] var dist = p2 - p1; //gets distance from p1 to p2
var m = new(Matrix);
m->SetV3(vnorm(p2 - p1));
[left] var orot=mobj->GetHPB();