0 votes
asked in VRIK by

When you call VRIKCalibrator.Calibrate without body and footTracker (which are marked Optional) you get a NullReferenceException on line 261:

data.pelvisTargetRight = rootController.pelvisTargetRight;

The rootController is only created when you do have a foot or body tracker so this should have a if(rootController != null) guard.

1 Answer

0 votes
answered by (15.2k points)


Thanks, already noticed that, has been fixed for the next version.

Please just change that line to this:

data.pelvisTargetRight = rootController != null? rootController.pelvisTargetRight: Vector3.zero;

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.