Ejemplo n.º 1
0
        protected virtual void Awake()
        {
            velocityEstimator = GetComponent <VelocityEstimator>();

            rb = GetComponent <Rigidbody>();
            if (rb)
            {
                rb.maxAngularVelocity = 50.0f;
            }
        }
Ejemplo n.º 2
0
    #pragma warning restore 0649

    void Start()
    {
        rigidbody         = GetComponent <Rigidbody>();
        velocityEstimator = GetComponent <Valve.VR.InteractionSystem.VelocityEstimator>();
        audioSource       = GetComponent <AudioSource>();
        if (Tutorial.IsTutorial())
        {
            Tutorial.PlayFrisbeePrompt();
            introScene = true;
        }
    }
Ejemplo n.º 3
0
        //-------------------------------------------------
        void Awake()
        {
            velocityEstimator = GetComponent <VelocityEstimator>();

            if (attachEaseIn)
            {
                attachmentFlags &= ~Hand.AttachmentFlags.SnapOnAttach;
            }

            Rigidbody rb = GetComponent <Rigidbody>();

            rb.maxAngularVelocity = 50.0f;
        }
Ejemplo n.º 4
0
    #pragma warning restore 0649

    void Start()
    {
        rigidbody         = GetComponent <Rigidbody>();
        velocityEstimator = GetComponent <Valve.VR.InteractionSystem.VelocityEstimator>();
        SoundManager.instance.PlayFrisbeePrompt();
        SoundManager.instance.PlayRoomAmbience();
        // introScene = false;
        rimOriginalMats = new Material[frisbeeRim.Length];
        for (int i = 0; i < frisbeeRim.Length; i++)
        {
            rimOriginalMats[i] = frisbeeRim[i].material;
        }
    }
Ejemplo n.º 5
0
        //-------------------------------------------------
        void Awake()
        {
            gm = GetComponent <GameManager>();
            keyObjectScript   = GetComponent <KeyObject>();
            velocityEstimator = GetComponent <VelocityEstimator>();

            if (attachEaseIn)
            {
                attachmentFlags &= ~Hand.AttachmentFlags.SnapOnAttach;
            }

            Rigidbody rb = GetComponent <Rigidbody>();

            rb.maxAngularVelocity = 50.0f;
        }
Ejemplo n.º 6
0
        //-------------------------------------------------
        protected virtual void Awake()
        {
            velocityEstimator = GetComponent <VelocityEstimator>();
            interactable      = GetComponent <Interactable>();

            rigidbody = GetComponent <Rigidbody>();
            rigidbody.maxAngularVelocity = 50.0f;


            if (attachmentOffset != null)
            {
                // remove?
                //interactable.handFollowTransform = attachmentOffset;
            }
        }
Ejemplo n.º 7
0
        //-------------------------------------------------
        protected virtual void Awake()
        {
            velocityEstimator = GetComponent <VelocityEstimator>();
            interactable      = GetComponent <Interactable>();

            if (attachEaseIn)
            {
                attachmentFlags &= ~Hand.AttachmentFlags.SnapOnAttach;
            }

            rigidbody = GetComponent <Rigidbody>();
            rigidbody.maxAngularVelocity = 50.0f;


            if (attachmentOffset != null)
            {
                interactable.handFollowTransform = attachmentOffset;
            }
        }
Ejemplo n.º 8
0
 void Start()
 {
     lastHeld          = Time.time;
     velocityEstimator = GetComponent <VelocityEstimator>();
     script            = GetComponent <Limit_Velocity>();
 }