Exemple #1
0
        // Use this for initialization
        void Start()
        {
            rigid             = GetComponent <Rigidbody>();
            rigid.angularDrag = 999;
            rigid.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ;

            col = GetComponent <Collider>();

            camHolder = CameraHolder.singleton.transform;
            anim      = GetComponentInChildren <Animator>();
            freeClimb = GetComponent <FreeClimb>();
        }
 public void Init(FreeClimb c, Transform helper)
 {
     anim        = c.anim;
     ikBase      = c.baseIKsnapshot;
     this.helper = helper;
 }