protected virtual void Awake() { velocityEstimator = GetComponent <VelocityEstimator>(); rb = GetComponent <Rigidbody>(); if (rb) { rb.maxAngularVelocity = 50.0f; } }
#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; } }
//------------------------------------------------- void Awake() { velocityEstimator = GetComponent <VelocityEstimator>(); if (attachEaseIn) { attachmentFlags &= ~Hand.AttachmentFlags.SnapOnAttach; } Rigidbody rb = GetComponent <Rigidbody>(); rb.maxAngularVelocity = 50.0f; }
#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; } }
//------------------------------------------------- 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; }
//------------------------------------------------- protected virtual void Awake() { velocityEstimator = GetComponent <VelocityEstimator>(); interactable = GetComponent <Interactable>(); rigidbody = GetComponent <Rigidbody>(); rigidbody.maxAngularVelocity = 50.0f; if (attachmentOffset != null) { // remove? //interactable.handFollowTransform = attachmentOffset; } }
//------------------------------------------------- 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; } }
void Start() { lastHeld = Time.time; velocityEstimator = GetComponent <VelocityEstimator>(); script = GetComponent <Limit_Velocity>(); }