resolveComponentIndices method

  1. @override
void resolveComponentIndices(
  1. List<ActorComponent?> components
)
override

Implementation

@override
void resolveComponentIndices(List<ActorComponent?> components) {
  super.resolveComponentIndices(components);

  if (_influencedBones != null) {
    for (final InfluencedBone influenced in _influencedBones!) {
      influenced.bone = components[influenced.boneIdx]! as ActorBone;
      // Mark peer constraints, N.B. that we're not adding it to the
      //  parent bone as we're constraining it anyway.
      if (influenced.bone != parent) {
        influenced.bone.addPeerConstraint(this);
      }
    }
  }
}