09-04-2021, 09:08 AM
(This post was last modified: 09-04-2021, 09:09 AM by josemendez.)
Hi!
Only change needed for newer versions is that the first batch is accessed like this:
instead of
Other than that, everything is exactly the same, it should just work. Keep in mind that you have to iterate trough all constraints, if you wish to set the values for *all* of them:
Let me know if you have trouble with it. cheers!
Only change needed for newer versions is that the first batch is accessed like this:
Code:
var skinBatch = skinConstraints.batches[0];
instead of
Code:
var skinBatch = skinConstraints[0];
Other than that, everything is exactly the same, it should just work. Keep in mind that you have to iterate trough all constraints, if you wish to set the values for *all* of them:
Code:
for (int i = 0; i < skinBatch.constraintCount; ++i)
{
// the skinRadiiBackstop array contains 3 floats per constraint: the skin radius, the collision radius and the collision backstop distance:
skinBatch.skinRadiiBackstop[i * 3] = < skin radius >;
skinBatch.skinRadiiBackstop[i * 3 + 1] = < collision radius >;
skinBatch.skinRadiiBackstop[i * 3 + 2] = < collision backstop >;
}
Let me know if you have trouble with it. cheers!