To make the IK target's calibration easily callable from a button, it now has a Calibrate method.
Thanks to Deat for noting that this would be useful!
This commit is contained in:
parent
8c547a3b39
commit
b6fc931723
2 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ public class OpenSeeIKTarget : MonoBehaviour
|
|||
private Quaternion currentR;
|
||||
private Vector3 currentT;
|
||||
private bool lastMirror = false;
|
||||
|
||||
public void Calibrate() {
|
||||
calibrate = true;
|
||||
}
|
||||
|
||||
void Interpolate() {
|
||||
if (!interpolate || interpolateState < 2)
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue