// Update this Muscle public virtual void Update(float pinWeightMaster, float muscleWeightMaster, float muscleSpring, float muscleDamper, float pinPow, float pinDistanceFalloff, bool rotationTargetChanged, float deltaTime) { state.velocity = rigidbody.velocity; state.angularVelocity = rigidbody.angularVelocity; props.Clamp(); state.Clamp(); Pin(pinWeightMaster, pinPow, pinDistanceFalloff, deltaTime); if (rotationTargetChanged) { MuscleRotation(muscleWeightMaster, muscleSpring, muscleDamper); } //offset = Vector3.Lerp(offset, Vector3.zero, Time.deltaTime * 5f); }