HandModel.MirrorZAxis C# (CSharp) Méthode

MirrorZAxis() public méthode

public MirrorZAxis ( bool mirror = true ) : void
mirror bool
Résultat void
  public void MirrorZAxis(bool mirror = true) {
    mirror_z_axis_ = mirror;
    for (int i = 0; i < fingers.Length; ++i) {
      if (fingers[i] != null)
        fingers[i].MirrorZAxis(mirror);
    }
  }

Usage Example

    /** Creates a new HandModel instance. */
    protected HandModel CreateHand(Hand leap_hand, HandModel model)
    {
        HandModel hand_model = Instantiate(model, transform.position, transform.rotation)
                               as HandModel;

        hand_model.gameObject.SetActive(true);
        Leap.Utils.IgnoreCollisions(hand_model.gameObject, gameObject);
        hand_model.transform.SetParent(transform);
        hand_model.SetLeapHand(leap_hand);
        hand_model.MirrorZAxis(mirrorZAxis);
        hand_model.SetController(this);

        handEvent handHandler = onCreateHand;

        if (handHandler != null)
        {
            handHandler(hand_model);
        }

        return(hand_model);
    }
All Usage Examples Of HandModel::MirrorZAxis