override protected void Update() { body.velocity = velocityTracker.Velocity; body.angularVelocity = velocityTracker.AngularVelocity; base.Update(); for (int i = 0; i < touchingMaterials.Count; ++i) { if (holding.Contains(touchingMaterials[i].GetComponent <Interactable>())) { float swingAmp = touchingMaterials[i].GetSwingUpdateAmplitude(Time.deltaTime); if (swingAmp > 0f) { HapticHandler.Blip(node, swingAmp, false); } continue; } else if (HapticHandler.DoingPulse(node)) { continue; } float amp = touchingMaterials[i].GetStayTouchAmplitude(body.velocity); if (amp > 0f) { HapticHandler.Blip(node, amp, false); } } }